Actions13
- File/Folder Actions
- File Actions
- Folder Actions
- Share Actions
Overview
The node integrates with Twake Drive, a cloud file storage service, to perform various file and folder operations. Specifically, the Upload File operation allows users to upload files into a designated directory within their Twake Drive instance. This is useful for automating file uploads from other workflows or external sources directly into Twake Drive.
Common scenarios include:
- Automatically uploading generated reports or documents to a specific folder in Twake Drive.
- Receiving files from other systems (e.g., email attachments, form submissions) and storing them in Twake Drive.
- Organizing uploaded files into specific directories based on workflow logic.
Properties
| Name | Meaning |
|---|---|
| Directory ID | ID of the targeted directory where the file will be uploaded. |
Note: The property "Directory ID" appears twice with slightly different descriptions but both refer to specifying the destination directory for the upload.
Output
The node outputs an array of JSON objects corresponding to each input item processed. Each output item contains details about the uploaded file, such as its metadata returned by the Twake Drive API. The exact structure depends on the API response but typically includes file ID, name, size, creation date, and directory location.
If binary data is involved (e.g., the file content), it is handled internally during upload but not explicitly outputted by the node; the output focuses on metadata.
Dependencies
- Requires an API key credential for authenticating with the Twake Drive API.
- Needs the Twake Drive instance URL and API token configured in the credentials.
- Uses internal helper modules for file operations (
FilesHelpers). - Requires network access to the Twake Drive API endpoints.
Troubleshooting
- Authentication errors: Ensure the API key/token and instance URL are correctly set in the credentials.
- Invalid Directory ID: If the specified directory ID does not exist or is incorrect, the upload will fail. Verify the directory ID before running.
- File size limits: Large files may be rejected by the API or cause timeouts; check Twake Drive's file size restrictions.
- Network issues: Connectivity problems can cause request failures; verify network access to the Twake Drive service.
- Error messages: The node captures error messages and API responses; review these details in the execution logs to diagnose issues.
Links and References
- Twake Drive API Documentation (generic link, replace with actual if available)
- n8n Documentation on Creating Custom Nodes
- n8n Expressions Guide (for dynamic parameter usage)