Is there any way to force downloads on files served by parse? Basically I want to extend the /parse/files/:appId/:filename
route to add a custom header that forces a download, but I can’t find an easy way to do that.
I ended up writing a separate endpoint that essentially does response.end(await fileObject.getData())
, but my files are in S3 and this takes a while. But I’m guessing it downloads the whole file locally first and only then starts sending data to the client browser, which is very unresponsive.