我尝试上传证书文件并失败:
$config["allowed_types"] = "cer";
$this->load->library("upload", $config);
$this->upload->do_upload("fieldname");
即使我上传 .cer 文件,我总是会收到以下错误:
The filetype you are attempting to upload is not allowed
那是谎言,我上传了一个允许类型的文件!为什么此类忽略其记录的设置 allowed_types?