Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: edb on March 27, 2006, 11:34:17 PM

Title: httpd: PHP Warning: MAX_FILE_SIZE of 64000000 bytes exceede
Post by: edb 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.
Title: Re: httpd: PHP Warning: MAX_FILE_SIZE of 64000000 bytes exc
Post by: cactus 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.
Title: httpd: PHP Warning: MAX_FILE_SIZE of 64000000 bytes exceede
Post by: edb 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: