Page 1 of 1

Upload size and memory issue

Posted: 06 Sep 2009, 22:09
by dotcom22
hi

I would like allow user to upload bigger pictures of 4 mb and more in files size... This especially because user often when they make pictures with a camera with higher resolution (15 mio pixels and more) get full picture of 3300 pixels wight and more (this will be always go up with future modern camera) with a file size of several MB...

When I try to upload a picture of 4mb I get this error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 17664 bytes)

I know I must set my host/server for allow to upload bigger size...and my limit is set to 16mb (so more then 4mb)....I know also I must allocate more memory to script for avoid this problem and my memory is set to 48mb (this is ever higher value)..but I continue to get problem...

In fact if I upload same picture using the default Joomla media manager I don't get any problem and my picture are correctly uploaded (but not resized sure..)

I can always increase the memory limit for server or also set "unlimited" but the reason here is to limit with a value for avoid problem...On my server it is write " This sets the maximum amount of memory in bytes that a script is allowed to allocate. This helps prevent poorly written scripts for eating up all available memory on a server. "

So the problem here coming from GD because don't have enough memory for resize thumb ?? That mean it will be never possible to allow bigger picture size to be thumbnailed ???

Any suggestion about this with some possible solutions for allow GD to work without increase dramatically memory size much appreciate...thank

Re: Upload size and memory issue

Posted: 08 Sep 2009, 19:58
by Jan
Hi, yes, the problem is not upload but working in GD (thumbnails creating) but now idea what should be set on the server, so GD will work with large images :-( (maybe increasing memory is the only one solution)
:-(

Jan