Upload
AI-generatedSummary
Upload a binary file to a specified folder path on a Synology File Station, optionally overwriting existing files.
Inputs
- Target Path (required) — The folder path on Synology File Station where the file will be uploaded.
- Binary Property (required) — Name of the binary property in the input containing the file data to upload.
- Overwrite — Boolean flag indicating whether to overwrite an existing file with the same name (default is true).
Output shape
a list of JSON objects, each containing the Synology File Station API response for the upload operation
The output includes the API response in JSON format per item uploaded. Errors during upload will throw node errors.
Examples
Example 1: Uploading a file named 'document.pdf' from incoming binary data 'data' to the folder '/Shared/Docs' with overwrite enabled.
Target Path = '/Shared/Docs', Binary Property = 'data', Overwrite = true