Skip to content
MyAppBuilder
StableAction

Download file

Overview

Starts a download of a file from a URL — an uploaded document, an export or any public link.

Purpose

Use it on “Download invoice” or “Download attachment” buttons where the URL comes from a record field.

Inputs

  • File URL — static or dynamic, for example Current record › Attachment.
  • File name — optional suggested name for the saved file.

Configuration

  • Bind File URL to a File or Image field. For CSV exports use the table's built-in export instead.

Outputs

  • None.

Example

Download the signed contract

Example
Button “Download contract” › On click:
  1. Download file
     File URL: Current record › Contract
     File name: contract.pdf

Errors

  • If the URL is empty or not an http(s) or same-site address, nothing happens (no error is shown).

Limitations

  • Browsers may open some file types (PDF, images) in a new tab instead of saving them; files hosted on other domains ignore the suggested file name.

Advanced

  • Schema: { type: "download_file", url: Binding, filename? }. Creates a temporary <a download> link; only https?:, mailto:, tel: and /-relative URLs pass the safety check.

Related

Was this helpful?