public function checkMimeType($fileInfo)
    {
        $mime = $fileInfo->getMimetype();
        if ($mime != 'directory' && !in_array($mime, $this->getFileManager()->getExtensionsAllowed())) {
            return 'Mime type "' . $mime . '" not allowed for file "' . $fileInfo->getFilename() . '"';
        }

        return true;
    }
public function checkMimeType($fileInfo)
    {
        $mime = $fileInfo->getMimetype();
        if ($mime != 'directory' && !in_array($mime, $this->getFileManager()->getExtensionsAllowed())) {
            return 'Mime type "' . $mime . '" not allowed for file "' . $fileInfo->getFilename() . '"';
        }

        return true;
    }
public function checkMimeType ( $ fileInfo ) { $ mime = $ fileInfo -> getMimetype ( ) ; if ( $ mime != 'directory' && ! in_array ( $ mime , $ this -> getFileManager ( ) -> getExtensionsAllowed ( ) ) ) { return 'Mime type "' . $ mime . '" not allowed for file "' . $ fileInfo -> getFilename ( ) . '"' ; } return true ; }
Check the mimetype

@param FileInfo $fileInfo
@return string|bool
Check the mimetype