WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
25887
Should have a way to convert File objects to data: urls
https://bugs.webkit.org/show_bug.cgi?id=25887
Summary
Should have a way to convert File objects to data: urls
Eric Seidel (no email)
Reported
2009-05-20 00:47:14 PDT
Should have a way to convert File objects to data: urls This would allow you to display a preview image for an uploading attachment, or to store an image in the Database and display it later. Related to
bug 25886
. Something like: file.toDataURL(encoding) // or URI?
http://en.wikipedia.org/wiki/Data_URI_scheme
Attachments
Add attachment
proposed patch, testcase, etc.
Sam Weinig
Comment 1
2009-05-20 07:50:14 PDT
While the FileUpload spec (
http://dev.w3.org/2006/webapi/FileUpload/publish/FileUpload.html
) does currently have support for this, I don't think we should implement it as it is currently spec and have express that concern the the editor. My concern is with synchronous access to the disk, so, an async api would be a solution.
Ojan Vafai
Comment 2
2009-06-11 15:58:32 PDT
Looks like
http://dev.w3.org/2006/webapi/FileUpload/publish/FileAPI.xhtml
is the new spec for this, which does make disk access async.
Anne van Kesteren
Comment 3
2023-08-23 07:43:14 PDT
This bug has clearly been overtaken by events.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug