Status

()

Core
DOM
--
enhancement
RESOLVED WONTFIX
7 years ago
2 years ago

People

(Reporter: khuey, Assigned: khuey)

Tracking

Trunk
Points:
---
Dependency tree / graph
Bug Flags:
sec-review +

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Comment hidden (empty)
Version: unspecified → Trunk
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

6 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.
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

6 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 )
Duplicate of this bug: 782787
Flags: sec-review+

Comment 7

6 years ago
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

6 years ago
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?

Comment 10

5 years ago
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
Last Resolved: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.