Actions14
- File/Folder Actions
- File Actions
- Folder Actions
- Share Actions
File → Upload File
AI-generatedOverview
The node uploads a file to Twake Drive. It supports specifying the destination folder either by browsing a dropdown list or by manually entering the folder ID. It also allows the user to choose whether to overwrite an existing file with the same name in the destination folder. This node is useful for automating file uploads to Twake Drive, such as backing up files, sharing documents, or integrating file uploads into workflows.
Use Case Examples
- Uploading a report file to a specific project folder in Twake Drive.
- Automating the upload of images to a shared folder for team access.
Properties
| Name | Meaning |
|---|---|
| Destination Select Mode | Determines how the destination folder is selected, either by browsing a dropdown or by manually entering the folder ID. |
| Parent Folder (Destination) Name or ID | The name or ID of the parent folder where the file will be uploaded. Leave empty to upload to the root folder. This is used when the destination select mode is set to dropdown. |
| Destination Folder ID (Manual) | The ID of the destination folder where the file will be uploaded. This is used when the destination select mode is set to manual entry. |
| Overwrite if Exists | Whether to overwrite an existing file with the same name in the destination folder. |
Output
JSON
id- The unique identifier of the uploaded file.name- The name of the uploaded file.mimeType- The MIME type of the uploaded file.size- The size of the uploaded file in bytes.parentId- The ID of the parent folder where the file was uploaded.createdAt- The timestamp when the file was uploaded.
Dependencies
- Twake Drive OAuth2 API credential
Troubleshooting
- Ensure the OAuth2 credentials are correctly configured and have the necessary permissions to upload files.
- If the file upload fails, check if the destination folder ID is correct and accessible.
- If overwrite is disabled and a file with the same name exists, the upload will fail or create a duplicate depending on the API behavior.