PDA

View Full Version : Upload Limit Exceeded?



SEANT
28th Apr 2008, 10:58 am
It seems like I may have reached a user limit on upload image space. I got this message at my last upload attempt:


Fatal error: Allowed memory size of 8388608 bytes exhausted
(tried to allocate 2400 bytes)
in /home/cadtutor/public_html/forum/includes/class_image.php on line 1418

Several years of screen captures, even at only 60 KB, can add up I guess. Is there a prescribed remedy? Remove the less informative images from older posts, perhaps?

CADTutor
28th Apr 2008, 11:33 am
Actually, there is no upper limit set on the total space allowed. Can you tell me the format and size of the file you were trying to upload so that I can check this?

SEANT
28th Apr 2008, 11:39 am
It was a 60 KB JPEG. Though, now that I look at the details, it was 644 x 505 pixels. That may have exceeded the size limit.

CADTutor
28th Apr 2008, 11:44 am
Hmm, in theory, the image would just have been resized automatically, it shouldn't have resulted in an error message. I'll do some tests.

CADTutor
28th Apr 2008, 11:50 am
OK, this seems to be a problem with the image resizing routine and happens with any image bigger than 600px.

I'm looking into it.

SEANT
28th Apr 2008, 11:50 am
Best of luck.

CADTutor
28th Apr 2008, 11:55 am
In the meantime, I've increased the maximum image width to 800px so that you can post the image you were using.

SEANT
28th Apr 2008, 11:59 am
Thanks.

I’m glad it’s not an issue requiring the removal of screen captures attached to previous posts. They’re all my babies . . . . it would have been so hard to decide. :)

SLW210
28th Apr 2008, 07:11 pm
I have just been resizing mine in a photo editor.

CADTutor
28th Apr 2008, 08:48 pm
Just an update on this. The error is being caused by the PHP memory_limit variable. We recently upgraded to PHP 5 and it looks like the memory settings need to be modified in order to allow for image resizing (a memory intensive process).

Hopefully, the increased maximum image size will mean that too many people won't experience any problems.

I'll report back when the matter is resolved.

CADTutor
29th Apr 2008, 12:18 pm
OK, that issue is now resolved. I've tested uploading some large files and they are now being uploaded and resized without causing any error.

I'm also inclined to leave the maximum width set at 800px so that should give everyone a bit more flexibility.

Alan Cullen
29th Apr 2008, 12:25 pm
Thanks, David. Not that it affected us that much, but always nice to know. :D

SEANT
29th Apr 2008, 01:20 pm
Yes, thanks again. Plus the increased image size will allow us to get the most out of our high resolution monitors.