Results 1 to 2 of 2

Thread: Methodes for splitet file upload?

  1. #1
    Join Date
    Jan 2013

    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.

    I didn't like to use flash or other addons methods for it. Just with pure HTML5/Javascript on the client side.

    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.

  2. #2
    Join Date
    Jul 2008
    urbana, il
    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.

    Create, Share, and Debug HTML pages and snippets with a cool new web app I helped create: pagedemos.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center