Actions17
- File Actions
- Folder Actions
- Share Actions
File → Upload
AI-generatedSummary
Uploads a file to a Zoho WorkDrive folder, either from binary data supplied by a previous node or from a remote URL, with control over whether an existing file with the same name is replaced or kept alongside the new upload.
Inputs
- Main input — One main input connection. When Binary File is ON, each incoming item must contain a binary property (default name 'data') with the file content. When Binary File is OFF, no binary data is needed and the node fetches the file from File URL.
Output shape
Parsed JSON response from POST {region-base-url}/workdrive/api/v1/upload
For each input item, the node outputs one item whose JSON is the parsed response body from Zoho WorkDrive's upload API. If Continue On Fail is enabled, an item with { error:
} is returned instead.
Examples
Example 1: Connect a 'Read/Write Files from Disk' node before this node, set Binary File to ON, leave Input Binary Field as 'data', enter the target Parent Folder ID, set If File Name Exists to 'Replace Existing File', and run.
Upload a local file from disk into a WorkDrive folder, replacing an existing file if the name already exists.
Example 2: Leave Binary File OFF, provide a File URL, enter the target Parent Folder ID, set If File Name Exists to 'Keep Both (Add Timestamp)', and run.
Fetch a remote file from a URL and upload it to a WorkDrive folder while keeping both files if the name already exists.