Open unf4z3d opened 6 years ago
This issue can't be fixed because we are using the firebase API-SDK to download the files and the Content-Type is managed by the API and not by the client app.
https://firebase.google.com/docs/storage/web/download-files?hl=en-419
Exists a hack-code to fix this requirement but only works in Google Chrome
Google cloud storage supports adding content type to objects, like images. Would this not work?
https://cloud.google.com/storage/docs/gsutil/addlhelp/WorkingWithObjectMetadata
no, do you get are 2 different API? 2 different products?
As the app has control of both server and frontend, should make use of the "download" html5 attribute on the a tag, as well as HTTP response headers like:
Content-Type: application/octet-stream Content-Disposition: attachment
To force the file to show a download dialog