src/MediaUploader.php
private function verifyMimeType($mime_type)
    {
        $allowed = $this->config['allowed_mime_types'];
        if (! empty($allowed) && ! in_array(strtolower($mime_type), $allowed)) {
            throw FileNotSupportedException::mimeRestricted(strtolower($mime_type), $allowed);
        }

        return $mime_type;
    }
private function verifyMimeType($mime_type)
    {
        $allowed = $this->config['allowed_mime_types'];
        if (! empty($allowed) && ! in_array(strtolower($mime_type), $allowed)) {
            throw FileNotSupportedException::mimeRestricted(strtolower($mime_type), $allowed);
        }

        return $mime_type;
    }
private function verifyMimeType ( $ mime_type ) { $ allowed = $ this -> config [ 'allowed_mime_types' ] ; if ( ! empty ( $ allowed ) && ! in_array ( strtolower ( $ mime_type ) , $ allowed ) ) { throw FileNotSupportedException :: mimeRestricted ( strtolower ( $ mime_type ) , $ allowed ) ; } return $ mime_type ; }
Ensure that the file's mime type is allowed.
@param  string $mime_type
@return string
@throws \Plank\Mediable\Exceptions\MediaUpload\FileNotSupportedException If the mime type is not allowed
Ensure that the file s mime type is allowed .