Troubleshooting UiPath App DownloadFileFromStorageBucket Issue

Unable to Download file from Storage bucket using uipath App?

Problem Description: When using the DownloadFileFromStorageBucket activity in UiPath Apps, users may encounter a situation where the file does not download despite no apparent errors. This article outlines steps to validate the issue and provides two methods for downloading the file.

Symptoms:

  • No error message: The user clicks on the download button, but there is no error reported.
  • File not downloading: Despite clicking the download button, the file does not download.


Resolution

Step 1: Validate the Issue

  1. Open Developer Tools: Open the browser’s developer tools
  2. Click the Download Button: Click the download button in your application
  3. Check for Errors: If there are no errors in the console or network tab, proceed to the next steps.


Approach #1: Download Using Open URL Condition

  1. Create a Variable: Create a variable type "AppsFile"
  2. Configure the "When Completed" Section: Select the Open URL activity.
    1. Set the URL value as follows:
      1. $"{Var.URL}" Replace Var with the previously created variable.

  1. It will download the file Directory.

Approach # 2: Download Using File Downloader

  • Add File Downloader Control: Place the File Downloader activity right after the download button control.
    • Configure the File Downloader: In the General section, set the source to the same variable created in Method 1.
    • After clicking the download button, the user will be prompted to download the file.

Conclusion: By following either of the methods above, users can ensure successful file downloads using UiPath App. Choose the method that best fits your workflow and requirements.