Hi,
I've been having fun with this wonderful software.
It's absolutely great.
I seem to have a little problem uploading photos over 2 mgs.
I had set the max file size at 5 mgs.
Anything below 2 mgs no problem.
Can anybody advise how I can resolve this.
Thanks.
Always read stickies ;)
-Read this one carefully :
http://forum.coppermine-gallery.net/index.php?topic=24088.0
Thank you so much, Sami !
Hi Sami,
I read the documentations you suggested. Tried my best to make something of it. Understood that 2M is the default max upload size setting in PHP.
Then, requested my server administrator to make the changes to the php.ini to allow uploads of files >2M.
He said no (as I expected), and suggested I use the htaccess to change the upload_max_filesize.
Read up further on htaccess, then created a htaccess file containing:
" php_value upload_max_filesize 5M", made sure it didn't have the txt extension, ftp it to my site directory.
Then I put it to the test - tried uploading photos more than 2 M - but it didn't work !
Where did I go wrong? is there any thing else I need to change?
Please help, Sami.
Thank you.
Try these values for these settings:
upload_max_filesize = 20M
post_max_size = 20M
Hi,
Thank you for helping.
I tried your suggestion.
Amended htaccess file to:
upload_max_filesize = 20M
post_max_size = 20M
It still didn't work. I couldn't even get to my website this time round.
I got this message when I log on:
"500 server error
I encountered an unrecoverable server error. Please go back and try again."
Tried:
upload_max_filesize 20M (without the "=")
post_max_size 20M
same result.
Then I tried:
php_value upload_max_filesize = 20M
php_value post_max_size = 20M
same result -didn't work.
Finally,
I tried this:
php_value upload_max_filesize 5 M
I manage to log on to my website.
Then I tried uploading photos >2 M.
Hey, It worked !!!!
I did this earlier - don't understand why it didn't work then.
Anyway, thank you so much TranzNDance ....... :D
Sorry for the confusion. I copied the code from my php.ini file, which presumably uses different syntax than if you were to put it in the .htaccess file. I'm glad this worked out for you eventually.