helpers\BaseFileHelper getExtensionsByMimeType()

getExtensionsByMimeType() public static method

Determines the extensions by given MIME type.

This method will use a local map between extension names and MIME types.

public static array getExtensionsByMimeType ( $mimeType, $magicFile = null )
$mimeType string

File MIME type.

$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.

return array

The extensions corresponding to the specified MIME type

doc_Yii
2016-10-30 17:04:44
Comments
Leave a Comment

Please login to continue.