Hi,
I'm new to Retool so this might be a duplicate. I'm shipping a "Download Export" feature to my clients and struggling to get Retool to just handle the response directly to the browser without storing its content in memory.
As per this topic and many more, the only way to download a file is to get the response body and handle it to utils.downloadFile
as a Base64 string, which means that before being downloaded, the content of the file is entirely stored in the browser runtime memory.
This is suitable for small files, but an export can be very heavy (several hundreds of Mb, in certain cases), so this feature needs the ability to just handle the response to the browser (with the content-disposition
header properly set to attachment
) and let the browser treat the response as a byte-stream and download it directly to a file, just like when we click on a "Download" link
How can we achieve it with Retool?
Thank you for your help!