Tags · Functions · Objects
Lucee Function Reference
Choose a function:

Function FILEGETMIMETYPE

Returns the mimetype of the given file

Example

filegetmimetype(any file,[boolean checkNotExtension]):string

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Default Value Description
file any  Yes   file path or object  
checkNotExtension boolean  No true if set to true, Lucee checks the header of the file, when set to false, Lucee only checks the extension.