Input validation rule that tests for a specific MIME-type.
$form->addRule (new FileUploadMimeTypeRule ('fieldName', 'text/plain'));
This example checks that the MIME-type of the uploaded-file “fieldName” is “text/plain”.