ze\file::isAllowed()
ze\file::isAllowed($file, $alwaysAllowImages = true)
Checks to see if a file type is recognised by the CMS.
$file
A file extension. You may also pass in the full filename or filepath.
This function will return true for the vast majority of common file types, but will return false for obscure file types, unknown file types or executable files.