FileGetMimeType
Gets the MIME type for the file path/file object you have specified.
Method Signature
Arguments
Argument | Type | Required | Description | Default |
---|---|---|---|---|
|
|
| The file path or file object to get the MIME type for. | |
|
|
| If true, throws an exception if the file does not exist or is empty. If false, returns "application/octet-stream" for non-existent or empty files. |
|
Examples
Related
Last updated