protected static function _findMimeType($mimeType) {
        if ($mimeType instanceof File) {
            $mimeType = $mimeType->type();

        } else if (strpos($mimeType, '/') === false) {
            $mimeType = self::getTypeFromExt($mimeType);
        }

        return $mimeType;
    }
protected static function _findMimeType($mimeType) {
        if ($mimeType instanceof File) {
            $mimeType = $mimeType->type();

        } else if (strpos($mimeType, '/') === false) {
            $mimeType = self::getTypeFromExt($mimeType);
        }

        return $mimeType;
    }
protected static function _findMimeType ( $ mimeType ) { if ( $ mimeType instanceof File ) { $ mimeType = $ mimeType -> type ( ) ; } else if ( strpos ( $ mimeType , '/' ) === false ) { $ mimeType = self :: getTypeFromExt ( $ mimeType ) ; } return $ mimeType ; }
Find the actual mime type based on the ext or File object.

@param string $mimeType
@return string
Find the actual mime type based on the ext or File object .