There are some nice examples about file uploading at HTML5 Rocks but there are something that isn\'t clear enough for me.
As far as i see, the example code about file sl
Both Chrome and FF support File.slice()
but it has been prefixed as File.webkitSlice()
File.mozSlice()
when its semantics changed some time ago. There's another example of using it here to read part of a .zip file. The new semantics are:
Blob.webkitSlice(
in long long start,
in long long end,
in DOMString contentType
);
Are you safe without slicing it? Sure, but remember you're reading the file into memory. The HTML5Rocks tutorial offers chunking the upload as a potential performance improvement. With some decent server logic, you could also do things like recovering from a failed upload more easily. The user wouldn't have to re-try an entire 500MB file if it failed at 99% :)