[UPHPU] upload_max_filesize

Alvaro Carrasco alvaro at epliant.com
Wed Jan 3 09:36:29 MST 2007


Wade Preston Shearer wrote:
> I am trying to limit the upload file size on a per virtual host basis 
> (ie, I don't want to do it globally in php.ini). I added it within the 
> virtual host tags in httpd.conf like this:
>
> <VirtualHost *:80>
>     . . .
>     php_flag upload_max_filesize 100000
> </VirtualHost>
>
>
> I also added the following hidden field to the upload form:
>
> <input type="hidden" name="MAX_FILE_SIZE" value="100000" />
>
>
> When testing however, I was able to upload a 1.5 MB file.
>
>
> What am I doing wrong or missing?
>
>
> wade
>
>
AFAIK php_flag is only for booleans.
For settings that require another type of value (such an int in this 
case) use php_value.
Take a look at a phpinfo() page to make sure it's being set correctly.

Alvaro



More information about the UPHPU mailing list