unf4z3d / slotmotion

0 stars 0 forks source link

Clicking download for the files does not result in a download popup #9

Open unf4z3d opened 6 years ago

unf4z3d commented 6 years ago

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

aasanchez commented 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

unf4z3d commented 6 years ago

Google cloud storage supports adding content type to objects, like images. Would this not work?

https://cloud.google.com/storage/docs/gsutil/addlhelp/WorkingWithObjectMetadata

aasanchez commented 6 years ago

no, do you get are 2 different API? 2 different products?