Upload a file to a local filesystem.
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"
Source file URI
URI of the file to be uploaded into the local system
Pebble expression referencing an Internal Storage URI e.g. {{ outputs.mytask.uri }}
.
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