FileGetMimeType
Last updated
Was this helpful?
Last updated
Was this helpful?
Gets the MIME type for the file path/file object you have specified.
file
string
true
The file path or file object to get the MIME type for.
strict
boolean
false
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.
true