plupload icon indicating copy to clipboard operation
plupload copied to clipboard

[question] ChunkUploaded is not firing when a chunk uploads

Open marias-truelogic opened this issue 6 years ago • 4 comments

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

marias-truelogic avatar Apr 04 '18 01:04 marias-truelogic

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);
});

Danoontjes avatar Apr 11 '18 08:04 Danoontjes

I couldn't get it to work, I had to revert back to 2.x

marias-truelogic avatar Apr 11 '18 20:04 marias-truelogic

I have the same problem. It seems to be binded on the ChunkUploader object, instead of FileUploader like the other events. Is it possibile?

qwertynus avatar Apr 20 '18 13:04 qwertynus

I have the same problem, just when I needed it so much. Any way to fix this?

iboware avatar May 27 '18 20:05 iboware