Closed Bug 648998 Opened 13 years ago Closed 8 years ago

Implement FileSaver

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: khuey, Assigned: khuey)

References

()

Details

      No description provided.
Version: unspecified → Trunk
Assignee: nobody → khuey
sec review requested by khuey set keyword
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 )
Flags: sec-review+
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.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.