plupload
plupload copied to clipboard
[question] ChunkUploaded is not firing when a chunk uploads
var test = uploader.videoUploader = new plupload.Uploader({
browse_button: 'video_file',
url: '/video/file/add/',
type: 'videos',
chunk_size: '1mb',
max_retries: 5,
multi_selection: false,
max_file_count: 1,
max_upload_slots: 5,
runtimes: 'html5',
auto_start: true,
multipart: true,
filters: {
mime_types: [{
title: "Video Files",
extensions: "avi,mov,mpeg,mpg,flv,m4v,mp4,3gp,vob,wmv"
}],
max_file_size: '4096mb'
},
init: {
BeforeUpload: function (up, file) {
uploadTracker.file = file;
uploadTracker.offset = 0;
uploader.videoStarted(up, file);
},
ChunkUploaded: function (up, file, info) {
console.log(arguments);
uploadTracker.offset = info.offset;
},
}
});
test.init();
That's just part of my config, but basically the 'ChunkUploaded' event does not fire. Should the server return something specific so that the event fires?
I'm using 3.1.2
I have the same issue (also with 3.1.2) I am trying to get the status of the chunk with:
uploader.bind('ChunkUploaded', function(up, file, info) {
console.log(info);
});
I couldn't get it to work, I had to revert back to 2.x
I have the same problem. It seems to be binded on the ChunkUploader object, instead of FileUploader like the other events. Is it possibile?
I have the same problem, just when I needed it so much. Any way to fix this?