public static function getMimeType($file)
    {
        $mimeType = new MimeTypeGuesser();
        $extension = self::getExtension($file);

        return $mimeType->getTypeByExtension($file);
    }
public static function getMimeType($file)
    {
        $mimeType = new MimeTypeGuesser();
        $extension = self::getExtension($file);

        return $mimeType->getTypeByExtension($file);
    }
public static function getMimeType ( $ file ) { $ mimeType = new MimeTypeGuesser ( ) ; $ extension = self :: getExtension ( $ file ) ; return $ mimeType -> getTypeByExtension ( $ file ) ; }
Fetches mime type from a file

@param string $file
@return string
Fetches mime type from a file