Zend_Validate_File_MimeType::isValid
Defined by Zend_Validate_Interface
Returns true if the mimetype of the file matches the given ones. Also parts of mimetypes can be checked. If you give for example "image" all image mime types will be accepted like "image/gif", "image/jpeg" and so on.
Signature
public function isValid(string
$value,
[array
$file = NULL] )
Parameters
$value
— string- Real file to check for mimetype
$file
— array- File data from Zend_File_Transfer
Returns
- boolean