Return the mimetype for a given filename. Only uses the extension - doesn't actually check the file If you need deep checking, take a look at File::checkFileContentsExtension If the extension is unrecognised, returns 'application/octet-stream'.
This is the code documentation for the SproutCMS project
Search documentation |
function mimetype()Return the mimetype for a given filename. Only uses the extension - doesn't actually check the file If you need deep checking, take a look at File::checkFileContentsExtension If the extension is unrecognised, returns 'application/octet-stream'.
Usagestring File::mimetype ( string $filename ); Arguments
Return value
|
Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Monday, 3rd April, 2023 at 02:59 pm |