Open
Bug 508668
Opened 17 years ago
Updated 6 years ago
Creative Collective: Uploading huge file (2.7 MB) gives fatal error
Categories
(Websites :: creative.mozilla.org, defect)
Tracking
(Not tracked)
REOPENED
1.3
People
(Reporter: vish_moz, Unassigned)
References
()
Details
Attachments
(1 file)
|
84.93 KB,
image/png
|
Details |
Creative Collective: Uploading huge file (2.7 MB) gives fatal error
Steps to Reproduce:
1. Log into MCC (mcc.stage.mozilla.com)
2. click on the 'Post your design' button => https://mcc.stage.mozilla.com/designs/add
3. upload a huge file ( 2.7 MB )
Expected behavior: You should get a user friendly error message saying that file sizes over certain limit are not allowed
Actual behaviour: you get an error with the following message:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 16320 bytes) in /data/www/mcc.stage.mozilla.com/trunk/system/libraries/drivers/Image/GD.php on line 76
Updated•17 years ago
|
Assignee: nobody → ryan
Comment 1•17 years ago
|
||
Verified, resolved and committed. Added the following to .htaccess:
php_value upload_max_filesize 8M
php_value post_max_size 8M
php_value max_execution_time 120
php_value max_input_time 120
==
Sending .htaccess
Transmitting file data .
Committed revision 48975.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 2•17 years ago
|
||
Reopening. This is giving me fits on Stage. Still having problems, but am making progress.
Ran into this same bug on stage. Added the following to .htaccess:
php_value memory_limit 128M
==
Sending .htaccess
Transmitting file data .
Committed revision 48976.
Sending .htaccess
Transmitting file data .
Committed revision 48977.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Reporter | ||
Comment 3•17 years ago
|
||
1. 7.4 MB: When uploading an Image, 7.4 MB, it times out and you get "Connection was reset by the network". But the image does get uploaded. Users might think their image did not get uploaded due to the connection reset message and keep uploading the same image again and again.
2. > 8MB: When uploading an image, greater than 8 MB, you get redirected back to the upload page without and message saying that the limit is 8 MB.
Comment 4•17 years ago
|
||
This is what we used on community store, it might work:
php_value upload_max_filesize 20M
php_value post_max_filesize 20M
php_value max_input_time 300
php_value memory_limit 500M
Comment 5•17 years ago
|
||
Increasing the php values in the .htaccess to be more inline with the community store.
Still receiving the same error, "The connection was reset" when uploading a large image file.
==
Sending public_html/.htaccess
Transmitting file data .
Committed revision 48991.
Comment 6•17 years ago
|
||
Do we have an IT contact? If so we should cc them. If not we should file an IT bug about this issue.
Comment 7•17 years ago
|
||
Copying Jeremy Orem from IT...Jeremy, please take a look at this and let us know what you think. From my perspective, this is the most important of the open MCC bugs.
Regarding solutions, Ryan's comment #4 about reusing the community store's parameters sounds good to me. In the context of design files, even 8MB isn't all that big...if we could go up to 20 that'd be really nice.
Comment 8•17 years ago
|
||
I comment 5 are you still using a 2.7 megabyte file? About how long after you start do you see the timeout?
Comment 9•17 years ago
|
||
Testing with a 6mb file (downloadable at https://mcc.stage.mozilla.com/designs/114/full). Timeout happens in roughly 45 seconds. File still uploads, but server throws an error. (Does not happen on my test server).
Comment 10•17 years ago
|
||
If you dont want to login, you can hit the file directly at https://mcc.stage.mozilla.com/images/designs/0/114/114_or.jpg
Updated•16 years ago
|
Target Milestone: --- → 1.3
Updated•15 years ago
|
Assignee: ryansnyder.me+bugs → nobody
You need to log in
before you can comment on or make changes to this bug.
Description
•