kDrive icon

kDrive

Manipulate files from remote Kdrive

Actions6

Overview

This node integrates with the kDrive cloud storage service, allowing users to manipulate files and folders remotely. Specifically, for the File Upload operation, it uploads a file to a specified folder within a given drive on kDrive. This is useful in automation workflows where files generated or processed by n8n need to be stored or backed up in kDrive.

Typical use cases include:

  • Automatically uploading reports, logs, or exports generated by other nodes.
  • Backing up important documents or data files to kDrive.
  • Integrating file uploads into larger workflows involving file processing or sharing.

Properties

Name Meaning
Drive ID The identifier of the kDrive drive where the file will be uploaded.
Parent Folder ID The ID of the folder inside the drive where the file should be placed (use "1" for root).
Binary Data Whether the file content to upload comes from binary data attached to the input item.
Binary Property The name of the binary property containing the file data when Binary Data is true.
File Name The name to assign to the uploaded file when not using binary data (i.e., uploading text).

Output

The output JSON contains the response from the kDrive API after uploading the file. This typically includes metadata about the uploaded file such as its ID, name, size, and location within the drive.

No binary output is produced by this operation since the node uploads data but does not return the file content itself.

Example output structure (simplified):

{
  "id": "file_id",
  "name": "uploaded_file_name",
  "size": 12345,
  "parentFolderId": "folder_id",
  ...
}

Dependencies

  • Requires an active kDrive API credential with a valid access token.
  • The node makes HTTP requests to the kDrive API endpoint at https://api.infomaniak.com/2.
  • The user must provide correct Drive ID and Parent Folder ID values.
  • For binary uploads, the input data must contain the specified binary property with file content.

Troubleshooting

  • Upload failed errors: These may occur if the provided Drive ID or Parent Folder ID is invalid, or if the access token has expired or lacks permissions. Check credentials and IDs.
  • Missing binary data: If Binary Data is enabled but the specified binary property does not exist or is empty in the input, the upload will fail. Ensure the binary property name matches exactly and that the input contains the binary data.
  • File name issues: When not using binary data, the file name must be provided; otherwise, the node will error out.
  • API rate limits or network errors: Temporary failures can happen due to network issues or API limits. Retrying or enabling "Continue On Fail" can help handle these gracefully.

Links and References

Discussion