Synology Drive icon

Synology Drive

Synology Drive / FileStation operations

Upload File

AI-generated

Summary

Upload a file to a Synology Drive destination folder using either binary data from the n8n workflow or by downloading from a specified URL.

Inputs

  • Upload Mode (required) — Choose whether to upload binary data from n8n ('Binary Data (from n8n)') or to fetch the file from a URL ('From URL').
  • Destination Folder (required) — The folder path on Synology Drive where the file will be uploaded. Defaults to '/'.
  • Binary Data Field — When uploading binary data, specify the binary field name that contains the file content. Defaults to 'data'.
  • File Name — When uploading binary data, optionally specify the file name to use for the uploaded file. If not provided, a default timestamp-based name is used.
  • File URL — When uploading by URL, provide the URL of the file to download and upload to Synology Drive.
  • Extract Filename from URL — When uploading by URL, choose whether to extract the filename from the URL's path. Defaults to true.
  • Custom File Name — When 'Extract Filename from URL' is false, you can specify a custom file name to use for the upload.
  • Overwrite Existing — Boolean flag indicating whether to overwrite an existing file of the same name in the destination folder. Defaults to true.
  • Create Parent Folders — Boolean flag indicating whether to create parent folders if they do not exist in the destination path. Defaults to true.
  • Extra Params (JSON) — Additional API parameters in JSON format to include with the upload request.

Output shape

a JSON object with the upload result containing success status, fileName, path, and data if successful; or an error description if failed.

The response includes success: true and details of the uploaded file on successful upload; if the upload fails, success is false and an error message is returned. Upload by URL first downloads the file, then uploads it. When uploading binary data, the file is taken from the specified binary property in the incoming data. The file name is required or derived as specified. Existing files are overwritten by default, and parent folders are created if enabled.

Links

Discussion