File::isAllowed()
\nn\t3::File()->isAllowed($filename = NULL);
Specifies whether the file type is allowed
\nn\t3::File()->isForbidden('image.jpg'); => returns 'true'
\nn\t3::File()->isForbidden('hack.php'); => returns 'false'
Copied!
| @return boolean
Source Code
public function isAllowed($filename = null)
{
return !$this->isForbidden($filename);
}
Copied!