Methodes for splitet file upload?
I search for methods to upload larger files with modern browsers.
I'd like take a file-upload in browser. analyses them. split it into small packets and upload them each by each up to my Server who join any package again to one file.
Maybe also generate a hash of the full file in browser, who can send at the end to server to compare and works fine.
How is it possible? ( I know its possible. Microsoft Skydrive already do it. But it's not possible to see how :-( )
Many Thanks for any help.
not sure how big of a file you mean.
it looks like you have to be able to fit the file in RAM.
your best bet might be to turn a File() into a Blob() and use the blob.slice() method to divide the file into chunks.
you may be able to use range headers in ajax requrest to an object URL.
but, the surest way is to just load the whole file into an array buffer and upload chunks of it.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)