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