Support Article
File does not download on using the downloadFile API
SA-53757
Summary
On configuring an activity to download a file on click of a button, the file does not download during execution.
Error Messages
Not Applicable
Steps to Reproduce
Configure a button to run the 'downloadFile' activity.
Root Cause
The button was configured to run the activity directly to download the file. However, the 'open URL in Window' was the preferred configuration to download a file. This ensured that the download action occurred asynchronously on a different thread without any violation on the current thread.
Resolution
As a local-change, use the 'Open URL in Window' to download files on click actions.
Published July 23, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.