Subscribe

UiPath Apps

The UiPath Apps Guide

Downloading a File Using the File Picker Control

Prerequisites

Make sure that you know the name of the file you want to download and the storage bucket it is in. The filename can come from a process, or you can find it in the storage bucket in Orchestrator.

Procedure

  1. Go to the app where you want to use the this feature.

  2. Create a new page called Download page and add a new Get file from Storage bucket rule to the load event of the page.

  3. Configure the Get file from Storage bucket rule.
    3.1 Pick the storage bucket containing the file you want to download.



    3.2 Go to the storage bucket in Orchestrator and copy the name of the file you need to download. Paste the name in the File Name field.
    3.3 Add a new variable in the Assign file to app variable field.



    3.4 Set the downloaded file name in the **When completed section** using the **Set Values** rule. When downloaded in the local machine, the file will have the name set using this rule.
  4. Add a new File Picker control in the Download page and configure it.
    4.1 Add the app variable created in step 3.3 in the Value Binding field.



    4.2 Under **Other Properties**, mark the **Download Only** checkbox.

Procedure results

When you click on the File Picker control in runtime, the file is downloaded. You cannot upload a new file using the same control.

Updated about a year ago

Downloading a File Using the File Picker Control


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.