package | Default |
---|
getExtensionByMimeType( $file, $magicFile = null): string|null
inheritdoc | Can not call parent since usage of self::getMimeType Set $magicFile (php array) from config (if is null) |
---|---|
see | https://www.yiiframework.com/doc/api/1.1/CFileHelper#getExtensionByMimeType-detail |
string|null
extension name. Null is returned if the extension cannot be determined.
getMimeType( $file, $magicFile = null, $checkExtension = true): string|null
inheritdoc | Set $magicFile (magic dataBase) from config (if is null) Use the magic file set by user only iof needed (else keep pĥp default or MAGIC env) |
---|---|
see | https://www.php.net/manual/en/function.finfo-open.php |
string|null
string if the MIME type. Null is returned if the MIME type cannot be determined.