Actions12
Upload File (Base64)
AI-generatedSummary
Uploads a base64-encoded file to a specified Synology File Station folder using the SYNO.FileStation.Upload API.
Inputs
- Path (required) — Destination folder path on the Synology NAS. The uploaded file is placed into this folder using the File Name parameter. The upload request always sends create_parents=true, so missing parent folders are requested to be created.
- File Name (required) — Remote file name to use for the uploaded file.
- File Content (Base64) (required) — Base64-encoded file content. The value is decoded with Buffer.from(value, 'base64') before upload. An empty value uploads an empty file.
- Overwrite — When true, the upload requests overwrite of an existing file with the same name. When false, the DSM API is asked not to overwrite, so an existing file normally causes an upload error.
Output shape
json
For each input item, the node returns one JSON object. On success: { success: true, fileName, path, data }, where path is the destination Path parameter and data is the DSM API response data. If the DSM API returns an error, the item returns { success: false, error, data }. If the HTTP request itself throws and Continue On Fail is enabled, the item returns an error object; otherwise the execution fails. No binary output is produced.
