Closed Bug 346168 Opened 19 years ago Closed 19 years ago

No error message shown when uploaded file exceeds size limit

Categories

(addons.mozilla.org Graveyard :: Developer Pages, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kairo, Assigned: clouserw)

References

Details

Attachments

(1 file)

I today tried to upload the German dictionary extension for Gecko-1.8.1-based products, which is really big (2.5 MB) actually. Of course, not allowing such big files is one problem here, but it's clear that we need a limit *somewhere*. What really looks like a bug to me though is that submitting that I ended in getting an empty page shown for additem.php?function=additem2 - i.e. the decorations (header/menu/footer) are shown, but no content at all. I would have expected to at least see and error message that says "Your extension is too big to be handled by AMO" or something like that. Showing an empty page is quite unfriendly to "users"...
Component: Public Pages → Developer Pages
QA Contact: web-ui → developers
Blocks: 312645
Summary: empty page shown when uploading big extension → No error message shown when uploaded file exceeds size limit
I just accidentally clicked "Next>>" on additem.php?type=E and I got the same, empty page. I think we should at least display an error message that tells the user we found no file - or whatever we detect the error to be.
The status code errors were already there (albeit, they are somewhat cryptic). If the status isn't 0, I just print the error and exit.
Assignee: nobody → clouserw
Status: NEW → ASSIGNED
Attachment #231471 - Flags: first-review?(morgamic)
Comment on attachment 231471 [details] [diff] [review] will show error if there is one Looks good -- checks out with: http://php.osuosl.org/manual/en/features.file-upload.errors.php And the FOOTER require is better than a die().
Attachment #231471 - Flags: first-review?(morgamic) → first-review+
Patch is in CVS.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
What is the limit at the moment? Someone with a fast connection want to upload something huge to verify this?
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: