Table of Contents

FileUploadRequiredRule

Input validation rule that tests for a file upload. Similar to RequiredRule for file uploads.

Example

$form->addRule (new FileUploadRequiredRule ('fieldName'));

This example checks that the file upload specified by “fieldName” exists (checks that a file was uploaded).

Additional Information