coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: Phil Burness on March 16, 2004, 05:13:57 PM

Title: upload size problem (I've read the FAQ)
Post by: Phil Burness on March 16, 2004, 05:13:57 PM
I'm running SuSE 9.0 and apache 2.0, PHP 4.3.3, MySQL 4.0.15, GD 2.0.15 and am having trouble with upload file sizes.

My upload_max_filesize from phpinfo() is 15M, but I get problems trying to upload anything above 1M.

Within Coppermine my profile shows a disk usage of 8024 KB, and in config the maximum size for uploaded pictures is 8000 KB, Max width or height of upload picture is 2600 pixels.

If I try and upload a picture of 1.6MB I get the following error

Fatal error Allowed memory size of 15728640 bytes exhausted at (null)0 (tried to allocate 2048 bytes) in /home/pburness/public_html/cpg/include/picmgmt.inc.php on line 176

Is this an issue with Apache, PHP, or SuSE 9.0?

Any help appreciated.

Thanks
Phil
Title: upload size problem (I've read the FAQ)
Post by: hyperion on March 16, 2004, 05:42:14 PM
This is not an php.ini upload size issue.  It is a php.ini memory limit issue.  The memory use is determined by:

(pixel width x pixel height x number of colors (3 for RGB, usually) / 1024 bytes/ 1024 kilobytes) + latent memory use by PHP, GD, and script in MB = amount of  memory needed in MB
Title: upload size problem (I've read the FAQ)
Post by: Casper on March 16, 2004, 05:47:13 PM
Please read this sticky, (posted by hyperion), and the threads it refers to.
http://forum.coppermine-gallery.net/index.php?topic=3999