Download a File
The Download File action allows users to download files directly to their devices, supporting Desktop, Android, and iOS platforms. This action is commonly used for scenarios like downloading reports, images, or any other files necessary for user workflows.
- Configure File Source: In your action flow, navigate to
Native
and select theDownload File
task.
- Provide a unique name for this action to easily identify it within your action flow.
Configuration Overview
Configuration Step | Description |
---|---|
URL to Download | The source URL or path of the file to be downloaded. Supports dynamic inputs using keywords. |
Headers | (Optional) Provide HTTP headers for the file request. Use a JSON object to specify headers like content type, tokens, etc. |
Download Path (Android) | Define the directory where the file will be stored on Android devices. Common directories include document_directory and download_directory . |
Download Path (iOS) | Set the directory for file storage on iOS devices, similar to Android. |
Dynamic Query Fields | Add query parameters to the file URL. Specify the key and value for each parameter. |
::: note
When downloading a file, the URL or file name
can include spaces, but it’s recommended to follow these guidelines for consistency and ease of use:
Spaces are acceptable in the file name, but using underscores (_
) or hyphens (-
) is preferable for clarity. Special characters such as ?
, *
, <
, >
, |
, \
, /
, :
should still be avoided as they may cause compatibility issues.
Examples:
- Good URL:
https://example.com/report%202023-12-25.pdf
:::
Once these settings are configured, your action flow is ready. When users trigger the action, the specified file will be downloaded.