Input validation rule that tests for the maximum size of an upload file.
$form->addRule (new FileUploadMaxSizeRule ('fieldName', 1048576));
This example checks that the file size of the file upload named ‘fieldName’ is no bigger than one MiB.