Zend\File\Transfer\Adapter\AbstractAdapter::getMimeType
Returns the real mimetype of the file Uses fileinfo, when not available mime_magic and as last fallback a manual given mimetype
Signature
public function getMimeType([string|array
$files = null] )
Parameters
$files
— object- Files to get the mimetype from
Returns
- string|array
- MimeType
Errors/Exceptions
-
InvalidArgumentException
- When the file does not exist