Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Photos over 2 mgs won't upload  (Read 3110 times)

0 Members and 1 Guest are viewing this topic.

eka

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
Photos over 2 mgs won't upload
« 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.
« Last Edit: July 19, 2007, 04:37:45 pm by GauGau »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Photos over 2 mgs won't upload
« Reply #1 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
Logged
‍I don't answer to PM with support question
Please post your issue to related board

eka

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
Re: Photos over 2 mgs won't upload
« Reply #2 on: July 19, 2007, 04:12:39 pm »

Thank you so much, Sami !
Logged

eka

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
Re: Photos over 2 mgs won't upload
« Reply #3 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.




Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Photos over 2 mgs won't upload
« Reply #4 on: July 20, 2007, 05:56:45 pm »

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

eka

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
Re: Photos over 2 mgs won't upload
« Reply #5 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

Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Photos over 2 mgs won't upload
« Reply #6 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.