Mime::type()
Returns the MIME type of a file
Parameters
Name | Type | Default |
---|---|---|
$file * | string |
– |
$extension | string |
null |
Return type
string
|null
Returns the MIME type of a file
Name | Type | Default |
---|---|---|
$file * | string |
– |
$extension | string |
null |
string
|null