This topic was automatically generated from Slack. You can find the original thread here.
Hi everyone - does anyone know how to use $.respond to send back a file that the user will download to their computer?
I have a pipedream scenario triggered by a GET request. This will be initiated by a user entering the URL into their browser and hitting enter (or any other http way of sending a GET request).
The workflow does a bunch of stuff resulting in a file being created and saved to the /tmp directory of the workflow (a 10mb .json file “results.json”).
I need to finish the workflow by responding to the get request with the .json file, so the file is automatically downlodaed to the users computer. I ideally DON’T want to just show the JSON contents on-screen - it should be a file download.
Any help would be appreciated.
Thanks