Downloading a file using a URL
To download a file using a URL, follow these steps:
You should know the name of the file, and the storage bucket containing it for the download. The filename may either be obtained from a process, or located in the storage bucket in Orchestrator.
- Before designing your app, go to Orchestrator. Access the storage bucket containing the file you want to download. Copy the name of the file.
- Go to the app where you want to use this feature.
- Add a new App variable, of the type AppsFile. Name it.
- On the MainPage, add a new Label control and configure it:
- Rename the Label control to "Download file", including quotation marks.
- Click the Style tab of the Label control. Change the style of the Label control. This will help the user identify the link as a downloadable. We recommend using italics and blue.
- Switch to the Events section of the Download file control. Click the Create rule button.
- Add a new Download file from Storage bucket rule. Configure it:
-
Click on the Storage bucket field. In the newly opened Resources menu, add the storage bucket containing the file you want to download into the field.

-
In the File name field, paste the name of the file from step 1. Surround the name and its extension with quotation marks. For example, "[file_name].png".
-
Click on the Assign file to app variable field. Select the app variable you added in step 3. Add the variable to the field.

-
- In the When completed section, add a Set Values rule.
- In the Items to set field, type
[variable_name].Name.- Set the downloaded file name inside the Value field. This will update the file name once the file is downloaded.
- In the When completed section, add a new Open Url rule.
- In the Url field of the rule, type
[variable_name].Url.
- In the Url field of the rule, type
When you click on the Download file in runtime, the file is downloaded in a new tab.