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):
plugins:
configurations:
- type: io.kestra.plugin.fs.local.Upload
values:
allowed-paths:
- /data/files
type: "io.kestra.plugin.fs.local.Upload"
Examples
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
from *Requiredstring
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 }}
.
overwrite booleanstring
true
Whether to overwrite existing files
If false, the task will throw an error if the target file already exists
to string
The destination path, if not set the task will use the name of the file denoted by the from
property
Outputs
size integer
Size of the uploaded file in bytes
uri string
uri
URI of the uploaded file