Function ze\file::isAllowed()

In PHP:
ze\file::isAllowed(
$file, $alwaysAllowImages = true
)

Description

Checks to see if a file type is recognised by the CMS. 

Parameters

$file

A file extension. You may also pass in the full filename or filepath.

Return Value

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.