When a user clicks on a link, the browser's default download window (the one that asks you where you want to save the file) only appears when the file has finished downloading in the background and I then take the blob returned and manually start the download to the user's filesystem afterwards.
My problem is that I would like the default browser's download window to open when the user clicks on the link and not after the download has been completed. Do you think there is a way I could do that?
I can't think of a way to do this using filesDownload. The filesDownload response block won't fire until the data is ready, so you can't build the URL from the blob until then, which you need to trigger the download.
You could use filesGetTemporaryLink instead though. That will directly return a URL you can pass along to the browser to download from.