medjalil / image-upload-preview

Automatically exported from code.google.com/p/image-upload-preview
0 stars 0 forks source link

File.getAsDataURL deprecated in FF7+, welcome to FileReader #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

Thanks for your great script however this will not work with FF7 :
https://developer.mozilla.org/en/DOM/File#getAsDataURL()

So to be compatible with html5 specification, we need to use FileReader object :
https://developer.mozilla.org/en/DOM/FileReader

Feel free to use the attached file as an update.

Thx

Original issue reported on code.google.com by xxorax on 11 Nov 2011 at 7:37

Attachments:

GoogleCodeExporter commented 9 years ago
really appreciate
works fine in my ff11.0

Original comment by cumt.xia...@gmail.com on 28 Mar 2012 at 6:21

GoogleCodeExporter commented 9 years ago
also works on latest chrome

Original comment by cumt.xia...@gmail.com on 28 Mar 2012 at 6:39