您的位置:首页 > 其它

CodeIgniter “The filetype you are attempting to upload is not allowed.”解决

2014-03-09 17:53 561 查看
             在使用CI上传类的时候遇到了“The filetype you are attempting to upload is not allowed.”,经过一番调试,在
system/libraries/Upload.php
第199行加入调试代码

$this->_file_mime_type($_FILES[$field]);
var_dump($this->file_type);
exit;


发现结果是application/octet-stream,于是在config/mines.php中加入相应的类型application/octet-stream,结果问题解决
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  codeigniter upload
相关文章推荐