upload_file
Upload one local file to a Synology NAS folder. Choose a destination folder, optionally create missing parents, and control whether an existing file of the same name is replaced.
Instructions
Upload one file from this machine (where this server runs) to a NAS folder; a local folder can't be uploaded. An existing NAS file of the same name is not replaced unless overwrite is true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Name for the file on the NAS (default: the local file's name). | |
| overwrite | No | Replace a NAS file of the same name (default false: the call fails and the NAS file is kept). | |
| local_path | Yes | The file on this machine, inside one of the allowed local folders (/root/Downloads), or below it. | |
| dest_folder | No | NAS folder to upload into (`/video/Uploads`). Optional when a default upload folder is configured. | |
| create_parents | No | Create `dest_folder` and any missing folders above it (default true); with `false`, `dest_folder` must already exist. |