Cml\Vendor\UploadFile::checkType PHP Method

checkType() private method

查检文件的mime类型是否合法
private checkType ( string $type ) : boolean
$type string
return boolean
    private function checkType($type)
    {
        if (!empty($this->allowTypes)) {
            return in_array(strtolower($type), $this->allowTypes);
        }
        return true;
    }