Input validation rule that tests for a file upload. Similar to RequiredRule for file uploads.
$form->addRule (new FileUploadRequiredRule ('fieldName'));
This example checks that the file upload specified by “fieldName” exists (checks that a file was uploaded).