Returns true if the mimetype of the file does not matche the given ones. Also parts of mimetypes can be checked. If you give for example "image" all image mime types will not be accepted like "image/gif", "image/jpeg" and so on.
Signature
public function isValid(string|array
$value,
[array
$file = null] )
Parameters
$value
—
object
Real file to check for mimetype
$file
—
array
File data from \Zend\File\Transfer\Transfer (optional)