[UPHPU] upload_max_filesize

Wade Preston Shearer lists at wadeshearer.com
Wed Jan 3 07:12:04 MST 2007

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

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?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
Url : http://uphpu.org/pipermail/uphpu/attachments/20070103/846fb3c5/smime.bin

More information about the UPHPU mailing list