Skip to content

Download File to Local

Overview

Download files to local in the client browser. To download a file, you need to pass in the file path or the BASE64 encoded file content.

Parameter Configuration

ParameterDescription
File NameName of the downloaded file. Supports using expressions to get context variables for dynamic content.
File SourceSource of the downloaded file. Includes String, Base64, Local File Path, Shared Storage File Path
File ContentContent of the downloaded file. Supports using expressions to get context variables for dynamic content.
File PathPath of the downloaded file. Supports using expressions to get context variables for dynamic content.

Usage Instructions

  • File Content
    • When the download source is String, the client will write the content to the file in text format
    • When the download source is Base64, the client will read the content as binary data and write it to the file. When using this mode, be careful with the file size to avoid browser crashes caused by parsing too large files
  • File Path
    • When the download source is Local File Path, the file content needs to fill in the file path stored in the local sandbox file
    • When the download source is Shared Storage File Path, the file content needs to fill in the file path stored in the shared storage file

Notes

When downloading files in multi-node deployment mode, try to use the Download Shared Storage File method to avoid the problem of not finding files due to download requests being load balanced to another service.

Usage Scenarios

  • After the user triggers automation, export a custom Excel or generate an Excel according to a template, and download it locally after generating the Excel file through automation calculation
  • After the user triggers automation, download files from the file system within the platform to local
  • After the user triggers automation, dynamically calculate text data and download the text content to local