coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: eka on July 19, 2007, 11:38:29 AM

Title: Photos over 2 mgs won't upload
Post by: eka on July 19, 2007, 11:38:29 AM
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.
Title: Re: Photos over 2 mgs won't upload
Post by: Sami on July 19, 2007, 11:41:16 AM
Always read stickies ;)
-Read this one carefully :
http://forum.coppermine-gallery.net/index.php?topic=24088.0
Title: Re: Photos over 2 mgs won't upload
Post by: eka on July 19, 2007, 04:12:39 PM
Thank you so much, Sami !
Title: Re: Photos over 2 mgs won't upload
Post by: eka on July 20, 2007, 05:48:41 PM
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.




Title: Re: Photos over 2 mgs won't upload
Post by: Tranz on July 20, 2007, 05:56:45 PM
Try these values for these settings:
upload_max_filesize = 20M
post_max_size = 20M
Title: Re: Photos over 2 mgs won't upload
Post by: eka on July 21, 2007, 02:23:12 AM
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

Title: Re: Photos over 2 mgs won't upload
Post by: Tranz on July 21, 2007, 06:36:39 AM
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.