Upload a file to a local filesystem.

Local filesystem access is disabled by default. You must configure the plugin default allowed-paths in your Kestra configuration.

Example (Kestra config):

yaml
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

URI of the file to be uploaded into the local system

Default true

Whether to overwrite existing files

If false, the task will throw an error if the target file already exists

The destination path, if not set the task will use the name of the file denoted by the from property

Size of the uploaded file in bytes

Format uri

URI of the uploaded file