public static getMimeTypeByExtension ( string $file, string $magicFile = null ) : string | ||
$file | string | the file name. |
$magicFile | string | the path (or alias) of the file that contains all available MIME type information. If this is not set, the file specified by [[mimeMagicFile]] will be used. |
Результат | string | the MIME type. Null is returned if the MIME type cannot be determined. |