Skip to content Skip to sidebar Skip to footer

Large File Uploads Using Filereader And Php

I am currently developing an upload module for very large files (larger than the server will ever allow) with progress and all that stuff. See the code bellow. It works for text fi

Solution 1:

This is just a shot in the dark, but looking at the file.slice API (http://www.w3.org/TR/FileAPI/#dfn-slice), it says:

"The slice method returns a new Blob object with bytes ranging from the optional start parameter upto but not including the optional end parameter, and with a type attribute that is the value of the optional contentType parameter."

However, you subtract 1 from "end" before using it - does that mean you leave out 1 byte at each chunk (since the end byte isn't included anyway)?

Also, you do sanitize $_POST['filename'] before using it - not that someone puts "../yourscript.php" in there?

Post a Comment for "Large File Uploads Using Filereader And Php"