VeloVol Posted February 15, 2007 Posted February 15, 2007 I'm having a problem uploading a few 2-3.1 mb pictures into my Coppermine Photo Gallery. The documentation suggests a server setting (upload_max_filesize) may be stopping me from loading files larger than 2mb. Is there a way to change this setting to 3.2 mb? If so, how do I do it? Quote
stevesh Posted February 15, 2007 Posted February 15, 2007 I doubt very much if it's the server - I upload files many times that size regularly (though not to Coppermine). Quote
VeloVol Posted February 15, 2007 Author Posted February 15, 2007 I doubt very much if it's the server - I upload files many times that size regularly (though not to Coppermine).I can load a larger file to the server (via FTP), but I'm unable to manage it using CPG. Quote
btrfld Posted February 15, 2007 Posted February 15, 2007 You can alter the upload-able file size by inserting the following into the .htaccess file in your Coppermine main folder. php_value post_max_size 12m php_value upload_max_filesize 10m Caveat: I don't use Coppermine, so I can't really say where the proper htaccess file is. However, if you find the right file the lines above should do the trick. Hope that helps. Quote
TCH-Bruce Posted February 15, 2007 Posted February 15, 2007 Welcome to the forums VeloVol Jim is correct above. Add those values to your .htaccess file and it will fix you up. By default the servers are configured to allow a 2mb file upload through PHP. Quote
VeloVol Posted February 15, 2007 Author Posted February 15, 2007 There currently isn't an .htaccess file in the Coppermine folder. I'm not completely sure how to do this. Is this how? (1) Create a text file with the two above mentioned lines, (2) Save it as ".htaccess", and (3) Upload it to the Coppermine photo gallery folder. Or is there more to it? Quote
btrfld Posted February 15, 2007 Posted February 15, 2007 That's the process, and the htaccess at the main level should affect all child folders. Quote
VeloVol Posted February 15, 2007 Author Posted February 15, 2007 The uploading appears to be working now. Thanks, everyone. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.