Table of Contents

FileUploadMaxSizeRule

Input validation rule that tests for the maximum size of an upload file.

Example

$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.

Additional Information