Closed
Bug 648998
Opened 13 years ago
Closed 8 years ago
Implement FileSaver
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: khuey, Assigned: khuey)
References
()
Details
No description provided.
Updated•13 years ago
|
Version: unspecified → Trunk
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → khuey
sec review requested by khuey set keyword
Keywords: sec-review-needed
setting flag for sec-review-complete https://wiki.mozilla.org/Security/Reviews/FileSaver
Keywords: sec-review-needed → sec-review-complete
Comment 3•12 years ago
|
||
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.
Assignee | ||
Comment 4•12 years ago
|
||
Yes, its still happening. I've been busy unfortunately. I'm trying to find someone else or an intern to finish this off.
Comment 5•12 years ago
|
||
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 )
Updated•12 years ago
|
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 ?
Comment 8•12 years ago
|
||
Seems like we will have the same functionality by bug 676619
Comment 9•11 years ago
|
||
If we don't want this anymore, can we get rid of dom::FileIOObject?
Comment 10•11 years ago
|
||
wow, <a href="data:text/plain,hello" download="myfile.txt"> is a lot more elegant than a FileSaver object.
Comment 11•11 years ago
|
||
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.
Assignee | ||
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•