jQuery-File-Upload icon indicating copy to clipboard operation
jQuery-File-Upload copied to clipboard

Progress report mismatch for large files on Firefox/Ubuntu

Open Jisay opened this issue 12 years ago • 3 comments
trafficstars

Hi,

I found some problem with large file upload. With large I mean more than 500MB. Checked with my implementation and with demo code.

When I try to upload a 512MB file, progress is not good. I have to wait that browser digest the request and when progress begins "data.loaded" is not good. The value is 530MB or something like that but it's more than the "data.total". So progress calculation is not good. I also tried with 650MB file and same result. With 200MB file, everything is ok.

Config of fileupload is :

{ dataType: 'json', url: 'myUrl', type: 'PUT', multipart: false }

With add, send, progress, done, fail and always callback.

Browser : Firefox 17.0.1. Also with checked POST multipart to true.

EDIT => problem seems to happend on Ubuntu 12.04... Windows OK

Checked with chromium 20.0.1132.47 : no problem.

Is there any fix for this problem ? Thanks in advance !

Jisay

Jisay avatar Jan 03 '13 10:01 Jisay

Judging from your report, this seems to be an operating system specific bug in the progress reporting of Firefox.

I have created an isolated test case for you on JSFiddle: http://jsfiddle.net/3bjpU/

If you select a file, it will post it to the URL of the input field. It will print the progress updates to the console.

To test it with large files, you'll have to exchange the URL with a local one.

Please report back if you can reproduce the issue with the mismatch between total and loaded data.

blueimp avatar Jan 03 '13 12:01 blueimp

Thanks for your quick reply !

Tested your jsFiddle. Problem is the same. Need to wait that request is send and then first uploaded data are greater than the total size of the file. Strange...

Jisay avatar Jan 03 '13 12:01 Jisay

OK, thanks. This means you'll have to report this bug to Firefox/Ubuntu.

blueimp avatar Jan 03 '13 12:01 blueimp