What is this error and how is it being triggered?

2,229 views
Skip to first unread message

kleelof

unread,
Mar 31, 2014, 9:09:28 PM3/31/14
to jquery-f...@googlegroups.com

Hello,

I am trying to get the uploader to work. But every file I try I get this error: Uploaded bytes exceed file size

I found it in the jquery.fileupload.js file. But I cannot determine what triggers it.

take care,
lee

Doug

unread,
Apr 4, 2014, 6:49:24 PM4/4/14
to jquery-f...@googlegroups.com
What size is the file that makes this error appear?
One cause might be the file already exists.
Another cause could be the PHP setting on the server limiting the file size.

Doug

Alex B

unread,
Jul 15, 2014, 12:22:08 PM7/15/14
to jquery-f...@googlegroups.com
Did you figure this out? I am also stuck on this.

Once I pick a file, the upload seems to progress and succeed (the progress bar steps to full green - for a moment), but ultimately fails (the progress bar turns red).

When I look at the "data" object's "messages" attribute I see:

  uploadedBytes: "Uploaded bytes exceed file size"

Like you, I found the line of code in jquery.fileupload.js:


But I wonder: why is the 'messages' hash pre-set to contain this error??

Also, the single image I tried to upload has 16,119 bytes (i.e. ~16KB (relatively small)), and the "done" callback's "data" object purports "loaded: 16119" - so this message does not make sense (the uploaded bytes do NOT exceed the file size) - which is why I wonder why it is "pre-set" like this to begin with. Mind you, data.uploadedBytes says "0" (zero), so that's at odds with "loaded". What attributes are we supposed to rely on for feedback?

Disclaimer: I followed Heroku's document:


 


On Monday, 31 March 2014 18:09:28 UTC-7, kleelof wrote:

Alex B

unread,
Jul 15, 2014, 6:49:01 PM7/15/14
to jquery-f...@googlegroups.com
I can now confirm that...

data.messages.uploadedBytes: "Uploaded bytes exceed file size"

...is present regardless of success or failure - so this is a bug.

Also, data.messages.loaded holds the correct value (number of bytes uploaded) when a file is uploaded successfully; whereas data.messages.uploadedBytes continues to be set to 0 (zero) even when a file is uploaded successfully.

Alex B

unread,
Jul 17, 2014, 12:22:33 AM7/17/14
to jquery-f...@googlegroups.com
I have been told that this is not a bug.

"This is the object containing the translation messages - it contains all available error messages."


Anyway, data.messages is not where to look for error details.
Reply all
Reply to author
Forward
0 new messages