PDA

View Full Version : PHP INI post_max_size not respected?


rabbitism
10-27-2010, 01:41 PM
I am trying to prevent big uploads to my app with this configuration. While upload_max_filesize works because any oversize file will cause the $_FILES['tmp_name'] to be empty, the server is still accepting the full file transmission to determine the real size.

Is the post_max_size not respected by Quercus? Is there any Resin configuration to limit post size?


<php-ini>
<sendmail_from>rabbitrun@gmail.com</sendmail_from>
<smtp_username>my_email_username</smtp_username>
<smtp_password>my_email_password</smtp_password>
<display_errors>yes</display_errors>
<log_errors>yes</log_errors>
<upload_max_filesize>10M</upload_max_filesize>
<post_max_size>10M</post_max_size>
</php-ini>