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
- Open Developer Tools: Open the browser’s developer tools
- Click the Download Button: Click the download button in your application
- 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
- Create a Variable: Create a variable type "AppsFile"
- Configure the "When Completed" Section: Select the Open URL activity.
- Set the URL value as follows:
- $"{Var.URL}" Replace Var with the previously created variable.
- Set the URL value as follows:
- 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.