Recent changes RSS feed
 

FileUploadMimeTypeRule

Input validation rule that tests for a specific MIME-type.

Example

$form->addRule (new FileUploadMimeTypeRule ('fieldName', 'text/plain'));

This example checks that the MIME-type of the uploaded-file “fieldName” is “text/plain”.

Additional Information

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