slice large file into chunks and upload using ajax and html5 FileReader
What I want to implement is: In the front end, I use the html5 file api to read the file, and then upload the file's content to the php backend using ajax, and it's ok if the filesize is small. However,if the file is big enough, it causes chrome to crash. So I split the large file into chunks using file.slice, when all chunks are uploaded to the php, merge the chunks into a single complete one. the code is as follows: the front end: <style> #container { min-width:300px; min-height:200px; border:3px dashed #000; } </style> <div id='container'> </div> <script> function addDNDListener(obj){ obj