Download a file from the local filesystem to the Kestra internal storage.
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.Download
values:
allowed-paths:
- /data/files
yaml
type: "io.kestra.plugin.fs.local.Download"
Examples
yaml
id: fs_local_download
namespace: company.team
tasks:
- id: download
type: io.kestra.plugin.fs.local.Download
from: "/data/files/source.csv"
workerGroup: "etl-worker"
Properties
from *Requiredstring
Source file path on the local filesystem
Absolute path of the file to download
Outputs
size integer
Size of the downloaded file in bytes
uri string
Format
uri
URI of the file in Kestra storage