Koozali.org: home of the SME Server

httpd: PHP Warning: MAX_FILE_SIZE of 64000000 bytes exceede

Offline edb

  • *
  • 548
  • +0/-0
httpd: PHP Warning: MAX_FILE_SIZE of 64000000 bytes exceede
« on: March 27, 2006, 11:34:17 PM »
I'm trying to upload images to my ecommerce site which resides in an ibay not the primary when I get the above error.

My PHP info reads as follows :

max_execution_time 2100
memory_limit 300M
post_max_size 650M
upload_max_filesize 650M

Any idea why the error is telling me that I'm out of room at 64M but I actually have 650M? Is there something I'm missing?

Thanks for any help you can possibly lend.
......

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: httpd: PHP Warning: MAX_FILE_SIZE of 64000000 bytes exc
« Reply #1 on: March 27, 2006, 11:38:49 PM »
Quote from: "edb"
I'm trying to upload images to my ecommerce site which resides in an ibay not the primary when I get the above error.

My PHP info reads as follows :

max_execution_time 2100
memory_limit 300M
post_max_size 650M
upload_max_filesize 650M

Any idea why the error is telling me that I'm out of room at 64M but I actually have 650M? Is there something I'm missing?

Thanks for any help you can possibly lend.


If I remember correctly Apache also has a setting for the maximum file size.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline edb

  • *
  • 548
  • +0/-0
httpd: PHP Warning: MAX_FILE_SIZE of 64000000 bytes exceede
« Reply #2 on: April 06, 2006, 03:16:39 AM »
Found the answer to my problem.

I found that one of my ihtml templates had the following entry:
<input type="hidden" name="MAX_FILE_SIZE" value="64000000">
which is in fact separate from any PHP settings and that was the reason for why I was having problems uploading multiple images through my web browser.
This is what limited me to 64M rather than the 650M I had set through PHP.

I simply modified the value in my template and all is fine again.

BTW this has nothing to do with SME server  :lol:
......