upload size problem (I've read the FAQ) upload size problem (I've read the FAQ)
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

upload size problem (I've read the FAQ)

Started by Phil Burness, March 16, 2004, 05:13:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Phil Burness

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

hyperion

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
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

Casper

Please read this sticky, (posted by hyperion), and the threads it refers to.
http://forum.coppermine-gallery.net/index.php?topic=3999
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here