Action Network
Download from Link
Downloads a file from a URL and saves it to the local file system. Useful for APIs that return file URLs instead of base64 data.
Node IDDownloadFromLinkAction
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
URL url | string | Yes | — | The URL of the file to download. Can be set by a data connection. |
Save Path filePath | file_picker | Yes | — | The absolute path where the downloaded file will be saved. Can be set by a data connection. |
Overwrite Existing overwrite | boolean | No | false | If true, overwrites the file if it already exists. If false, fails when the file exists. |
Headers (JSON) headers | textarea | No | — | Optional JSON string representing request headers. E.g., {\"Authorization\": \"Bearer token\"}. Can be set by a data connection. |
Max File Size (MB) maxFileSizeMB | integer | No | 1024 | Maximum allowed file size in megabytes. Downloads exceeding this limit will fail. Set to 0 for unlimited. Default is 1024 MB (1 GB). |
Allow Private Networks allowPrivateNetworks | boolean | No | false | If false (default), requests to private/internal networks are blocked (SSRF protection). Enable only if you need to access internal services. |
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
Execute input0 | object | Yes | An incoming execution signal. |
Outputs
| Output | Type | Identifier | Description |
|---|---|---|---|
Download Info output0 | object | download_info | Emits an object containing the file path and file size in bytes. |