lento / spam

Spark Project & Asset Manager
GNU General Public License v3.0
7 stars 2 forks source link

update upload.js to use the new HTML5 File API #15

Open lento opened 14 years ago

lento commented 14 years ago

the new API makes it possible to upload a file without reading it all in memory (a must for large files!) see: https://hacks.mozilla.org/2010/07/firefox-4-formdata-and-the-new-file-url-object/

It will work in firefox 4.0, must check chrome, safari and opera

lento commented 14 years ago

the spec has changed, see:

http://blog.kylehuey.com/post/1140662215/canvas-mozgetasfile-and-changes-to-the-file-url-spe