coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: everest on April 17, 2005, 10:12:05 PM

Title: Unable to modify upload_max_filesize setting
Post by: everest on April 17, 2005, 10:12:05 PM
Hi,

I'm unable to upload any files larger than 2M to my server.  The reason's for this seem very obvious, as the upload_max_filesize setting is clearly set to 2M as shown in the debug output below.  However, modifications to " Max size for uploaded files (KB)" in the Config menu have absolutely no impact!  I've attemped to reduce and increase the setting, but the debugging output indicates that this is simply stuck at 2M. 

Any ideas on this?  I'm tempted to find out where this setting is stored (probably in the SQL database) and just change it manually. 

-Jeff

Debug Output Included:

USER:
------------------
Array
(
    [ID] => d4b3a0345920bdd5cb8d87ff88aff5b8
    [am] => 1
    [liv] => Array
        (
           
Title: Re: Unable to modify upload_max_filesize setting
Post by: everest on April 17, 2005, 10:21:58 PM
Just as a quick follow, my manual solution has failed.  A quick review of the database reveals this entry (snipped from mysqldump):

INSERT INTO cpg131_config VALUES ('max_upl_size','50');

As you can see, I attempted to actuall *decrease* the value to 50K. . .the limit remains at 2M regardless of this setting. . .

Manual table manipulation solution foiled!!

Now I'm totally screwed without help :)

-Jeff
Title: Re: Unable to modify upload_max_filesize setting
Post by: kegobeer on April 18, 2005, 01:17:34 AM
You need to increase the max filesize in php.ini.
Title: Re: Unable to modify upload_max_filesize setting
Post by: everest on April 19, 2005, 09:29:08 PM
Problem solved!  THANK YOU!

-J
Title: Re: Unable to modify upload_max_filesize setting
Post by: Tashko on September 03, 2005, 06:32:59 AM
Just to add to this thread another potention issue people may have. I was unable to get my changes in php.ini to register in coppermine. I was always stuck at 2M even though I had changed the appropriate values everywhere!

Turned out the root cause was I had placed the php.ini file in my C:/windows directory and moving it to my c:/php directory solved the problem. I'm fairly certain in the docs it said you could place the ini file anywhere in the PATH and it should work...it doesn't. Keep it in you PHP install directory.

Hope this helps somebody...

t.
Title: Re: Unable to modify upload_max_filesize setting
Post by: Joachim Müller on September 03, 2005, 11:59:12 AM
I'm 100% sure that in the coppermine docs it doesn't say anything about the location of php.ini at all. And I'm 100% sure that in the PHP documentation they don't say you can put php.ini anywhere you want.
There can be various files named php.ini on your server, but only one of them is actually being taken into account - you can find out which one it is by taking a look at phpinfo(). Only modifying this file will do anything, all other versions of php.ini are not being taken into account. You can not put php.ini anywhere you want - on no server!