Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Uploading files > 2MB  (Read 2470 times)

0 Members and 1 Guest are viewing this topic.

The Grand Pooh-Bah

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
    • GrandCherokeePhotos
Uploading files > 2MB
« on: May 26, 2006, 07:49:44 pm »

I understand that PHP is set by default to a maximum of 2MB for files to be uploaded.  Are there any negative (other than bandwidth usage) consequences for increasing this to 4MB?

 If not does anyone here know where to make these changes within PHP.  I'm on a dedicated server so I have access.
Logged
"The very atmosphere of firearms anywhere and everywhere restrains evil interference - they deserve a place of honor with all that's good." - George Washington

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Uploading files > 2MB
« Reply #1 on: May 26, 2006, 07:54:02 pm »

The memory assigned to PHP is being set in the server's php.ini file. The drawback is obvious: if there are multiple instances of script run simultaneously, the memory usage sums up. If more memory is being used than the server has, it will slow down (swapping) and eventually crash. I guess it's pretty safe to go to 4 MB (which is still a bit small for decent image resizing).
There are better places to ask for webserver setup than this board...
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.