652. Class

652.1. Zend\Validator\File\ExcludeMimeType

Validator for the mime type of a file

652.1.1. Methods

652.1.1.1. isValid

isValid()

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.

Parameters:string|array – Real file to check for mimetype
Return type:bool

652.1.2. Constants

652.1.2.1. FALSE_TYPE

652.1.2.2. NOT_DETECTED

652.1.2.3. NOT_READABLE

Project Versions

Table Of Contents

Previous topic

651. Class

Next topic

653. Class

This Page