Reading local files in JavaScript (HTML5)
html5rocks.com
html5rocks.com
It really is amazing what you can do. The only thing missing is being able to decode video metadata so that I know whether 100KB is too little or too much to send if I want to extract a single frame.
Does have experience with the CORS "partial support" in IE?
[http://en.wikipedia.org/wiki/Cross-Origin_Resource_Sharing]
you can do the same thing with 2 ajax requests too. one doing the upload and the other that opens a connection at the same time and waits for a success response. onreadystate 3 of the second request, abort() the upload request.
This is really cool stuff, so my first instinct is to consider the possible caveats.
If you're calling requestFileSystem() for the first time, new storage is created for your app. It's important to remember that this file system is sandboxed, meaning one web app cannot access another app's files. This also means you cannot read/write files to an arbitrary folder on the user's hard drive (for example My Pictures, My Documents, etc.).