I think [validateMaxPostSize](https://github.com/nette/forms/blob/master/src/Forms/Form.php#L473) method is actually never called in case POST data exceeds `$_SERVER['CONTENT_LENGTH']`. It is meant to be called from [validate()](https://github.com/nette/forms/blob/master/src/Forms/Form.php#L467) which is called from [fireEvents](https://github.com/nette/forms/blob/master/src/Forms/Form.php#L401) but it can never be called due [this condition](https://github.com/nette/forms/blob/master/src/Forms/Form.php#L397) as it calls https://github.com/nette/application/blob/master/src/Application/UI/Form.php#L108 which returns always FALSE in that case
Activity
JanTvrdik commentedon Aug 2, 2014
How could POST data exceed
$_SERVER['CONTENT_LENGTH']? Maybe related https://github.com/nette/nette/pull/793/filesCiki commentedon Aug 2, 2014
Yes, it is related, thanks! POST data can be exceeded if you try to upload too large file
dg commentedon Aug 6, 2014
Hmm, this is related to 2.2, because of this nette/application@1f492cf