7 years ago
Assignee: nobody → khuey
7 years ago
Depends on: 657994
sec review requested by khuey set keyword
setting flag for sec-review-complete https://wiki.mozilla.org/Security/Reviews/FileSaver
Keywords: sec-review-needed → sec-review-complete
Is this still happening? Currently the best way to save a binary Blob is to use: https://github.com/eligrey/FileSaver.js For something like an image, it'll just get displayed in a new tab and you have to go save as. For generic data files, the name is just gobbledygook and there's no way for the user to type in their own.
Yes, its still happening. I've been busy unfortunately. I'm trying to find someone else or an intern to finish this off.
I have some questions about this new API: Will it use the contentType of the input Blob to determine the file type / file name extension? Will it be possible to suggest a file name? If a download originates from the server side, we can suggest a file name using "Content-Disposition: attachment; filename=...". Does Mozilla plan to implement something like FileSaverStream? ( http://code.google.com/p/chromium/issues/detail?id=65615#c14 )
For a year now I also used a polyfill for firefox to save binary Blob: https://github.com/eligrey/FileSaver.js but under firefox we still can not suggest a file name like expected... Is this subject progresses ? can we expect a native blob saveAs function coming soon ?
Seems like we will have the same functionality by bug 676619
If we don't want this anymore, can we get rid of dom::FileIOObject?
wow, <a href="data:text/plain,hello" download="myfile.txt"> is a lot more elegant than a FileSaver object.
FileWriter, which is an extension of this, is used by mega.co.nz for writing out very large files. This seems like very useful functionality to have.
2 years ago
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.