Recent changes RSS feed
 

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

 
wact/api/validation/rule/fileuploadmaxsizerule.txt · Last modified: 2006/12/09 17:16
 
Hosting for this site donated by Procata PHP Development