File system Upload

File system Upload

Certified

Upload file to the local filesystem

Writes a file from Kestra internal storage to a local path under configured allowed-paths; access outside is denied. Source must be a kestra:// URI. Overwrite defaults to true; the destination path defaults to the source filename inside the first configured allowed-paths entry.

Example (Kestra config):

plugins: 
  configurations: 
    - type: io.kestra.plugin.fs.local.Upload
      values: 
        allowed-paths: 
          - /data/files
yaml
type: io.kestra.plugin.fs.local.Upload
yaml
id: fs_local_upload
namespace: company.team

inputs:
  - id: file
    type: FILE

tasks:
  - id: upload
    type: io.kestra.plugin.fs.local.Upload
    from: "{{ inputs.file }}"
    to: "/data/uploads/file.txt"
    overwrite: true
    workerGroup: "etl-worker"
Properties

Source file URI

Kestra internal storage URI of the file to upload

Defaulttrue

Overwrite existing files

If false, the task fails when the target file already exists

Reference (ref) of the pluginDefaults to apply to this task.

Destination path

Optional local path; when omitted, defaults to the source filename inside the first configured allowed-paths entry

Size of the uploaded file in bytes

Formaturi

URI of the uploaded file