Download Storage File
Download Storage File
Section titled “Download Storage File”Type: storage-download-file · Package: Storage Activities v1.0.5 · Output: string
Downloads a file from a bucket in Zoan Cloud Storage to the robot’s disk, to work with it (open it in Excel, attach it to an email, load it into a system). Returns the local path where it was saved.
How it works
Section titled “How it works”- Identifies the file by its
idor bybucket+name. If you setid,bucketandnameare ignored. - Asks Zoan Cloud for a temporary download link and downloads the file to
destination. - Creates any missing folders in
destination. If a file already exists at that path, it is overwritten.
If the bucket has download auditing enabled, the read is recorded.
Required parameters
Section titled “Required parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
destination | string | — | Local path where the file is saved, including its name. E.g.: C:/work/sales.xlsx. |
In addition, you must set id or name (see optional parameters).
Optional parameters
Section titled “Optional parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
id | string | — | File id (alternative to bucket + name). |
name | string | — | File name inside the bucket, including its folders. E.g.: 2026/sales.xlsx. |
bucket | string | "default" | Bucket name. Only used with name. |
Output
Section titled “Output”Returns a string with the local path of the downloaded file (the same value as destination). If the file doesn’t exist, the activity fails: it doesn’t return an empty path.
Common errors
Section titled “Common errors”| Message | Cause and fix |
|---|---|
'destination' is required. | You didn’t set destination. |
Provide 'id' or 'name'. | You set neither id nor name. |
… HTTP 404: …File not found in this environment. | There’s no file with that id or that bucket + name in the environment where the robot runs (names are case-sensitive and include folders). Check the reference with List Storage Files. |
… HTTP 400: …Invalid bucket name… | The bucket name has characters that aren’t allowed. |
Download failed: HTTP {code}. | Downloading the temporary link failed (network, proxy). Retry with Retry. |
Storage activities require a Zoan Cloud runtime context. Missing: … | The process isn’t running from Zoan Cloud or from the Designer signed in. |
Errors arrive with the prefix “Could not download the file: ”. An error writing to destination (invalid path, no permissions, file open in another program) also makes the activity fail.
Example
Section titled “Example”Download Storage File bucket = "reports" name = "2026/sales.xlsx" destination = "C:/work/sales.xlsx" → output: pathRead Excel Sheet path = path hasHeader = true → output: salesRelated activities
Section titled “Related activities”- Upload Storage File — upload a file to the bucket.
- List Storage Files — find the file you want to download.
- Get Storage File URL — get the link without downloading the file.