I am using Blueimp File Uploader.
While uploading files larger than the maxChunkSize, how do we access each uploaded file blobs separately in the server ?
My issue is that I need to forward the uploaded files in separate blobs to a different server using a backend api.
So far, looking at wiki, for chunks of 1 mb, I have added the following in the js :
$('#fileupload').fileupload({
url: 'server/php/',
maxChunkSize: 1000000 // 1 MB
});
but after upload is completed, I see the full merged file in the server :
server/php/files
How do we access the individual blobs on the server ?
I have not done any changes in the default file server/php/index.php :
error_reporting(E_ALL | E_STRICT);
require('UploadHandler.php');
$upload_handler = new UploadHandler();
and the default UploadHandler class in
server/php/UploadHandler.php
(https://github.com/blueimp/jQuery-File-Upload/blob/master/server/php/UploadHandler.php). File is too big to be placed here.
I tried adding fileuploadchunkdone option, but am unsure, how do we access the file blobs in the server -- that is if it is the right way to do it.
$('#fileupload').fileupload({
url: 'server/php/',
maxChunkSize: 1000000 // 1 MB
})
.on('fileuploadchunkdone', function (e, data) {
console.log('chunkdone')
console.log(e)
console.log(data)
});