Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

problems with files larger than 4 GB #1694

Open
The-JK opened this issue Sep 20, 2012 · 8 comments
Open

problems with files larger than 4 GB #1694

The-JK opened this issue Sep 20, 2012 · 8 comments

Comments

@The-JK
Copy link

The-JK commented Sep 20, 2012

This problem occurs in the browsers Opera, Firefox.
When you select the file of more than 4 GB, the opera its size is always 4.29 GB size in Firefox is displayed correctly. In the opera file upload does not start, the page just refreshes. In Firefox starts uploading, but the progress is not the correct data displays and some time upload is interrupted with an error. In the browser chrome, no problems, everything works perfectly.

I use the following browser versions:
Opera 12.02
Firefox 15.0.1
Chrome 18.0.1025.1634

Plugin version:
jQuery File Upload Plugin 5.16.2
jQuery File Upload User Interface Plugin 6.9.4
jQuery File Upload File Processing Plugin 1.0

@blueimp
Copy link
Owner

blueimp commented Sep 20, 2012

The issue of uploading files larger than 4 GB is independent of the file upload plugin and due to browser restrictions:

Firefox has a current limit of 2^32 bytes for file uploads:
https://bugzilla.mozilla.org/show_bug.cgi?id=215450
https://bugzilla.mozilla.org/show_bug.cgi?id=660159
If the Content-Length of the upload post exceeds 2^32 bytes, Firefox reports a false Content-Length.

Google Chrome reports the correct Content-Length, but continues to send 0's if a Content-Length of more than 2^32 bytes has been exceeded:
http://code.google.com/p/chromium/issues/detail?id=139815

A similar restriction might apply to other browsers, like Opera.

I've updated the FAQ accordingly:
https://github.com/blueimp/jQuery-File-Upload/wiki/Frequently-Asked-Questions

@patricksebastien
Copy link

If using "Chunked uploads" (Blob API) will that remove this limitation?

@blueimp
Copy link
Owner

blueimp commented Oct 7, 2012

Probably yes, though I didn't test it yet.

@haison8x
Copy link

When I try uploading a 4Gb file with name myfile.zip, the jQueryUpload create an infinite loop. It create myfile.zip, myfile(1).zip, myfile(2).zip, .....Is there a bug?

@blueimp
Copy link
Owner

blueimp commented Dec 20, 2012

It is probably related to the 4GB limitation current browsers have.

@khaled450
Copy link

I am having the same issue of the infinite loop even on a small file of size 17Mb. The progress bar hits the end then it goes back to almost 65% and continue. On the server side i see the files:
first 10Mb file
then a merge of the two files to make a final 17Mb file.
then it keeps continue creating 17Mb files ... forever

@khaled450
Copy link

I got narrowed down to the chunked method. I am not sure what's going on but for some reason using chunked method causes data.loaded to return NaN at some point. That doesn't happen if the file was an image though. Any suggestions?

@blueimp
Copy link
Owner

blueimp commented Jun 27, 2013

@khaled450, please post your issue to the support forums, as it is not directly related to the browser limitation of 4GB file uploads, nor an isolated problem in the file upload library itself.
You might want to check if your server-side upload handler does return the correct responses for chunked uploads.
Also make sure to use the latest version of the File Upload plugin.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants