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)
addons.mozilla.org Graveyard
Developer Pages
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: kairo, Assigned: clouserw)
References
Details
Attachments
(1 file)
792 bytes,
patch
|
morgamic
:
first-review+
|
Details | Diff | Splinter Review |
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"...
![]() |
Reporter | |
Updated•19 years ago
|
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
![]() |
Reporter | |
Comment 1•19 years ago
|
||
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.
Assignee | ||
Comment 2•19 years ago
|
||
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 3•19 years ago
|
||
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+
Assignee | ||
Comment 4•19 years ago
|
||
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?
Updated•9 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•