Photos over 2 mgs won't upload Photos over 2 mgs won't upload
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Photos over 2 mgs won't upload

Started by eka, July 19, 2007, 11:38:29 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

eka

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.

Sami

‍I don't answer to PM with support question
Please post your issue to related board

eka


eka

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.





Tranz

Try these values for these settings:
upload_max_filesize = 20M
post_max_size = 20M

eka

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


Tranz

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.