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.”,经过一番调试,在
发现结果是application/octet-stream,于是在config/mines.php中加入相应的类型application/octet-stream,结果问题解决
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文件上传时提示The filetype you are attempting to upload is not allowed
- 使用FABridge时,出现You are trying to call recursively into the Flash Player which is not allowed…错误的处理
- INS-35354] The system on which you are attempting to install Oracle RAC is not part of a valid clust
- Jenkins部署:The username you provided is not allowed to use the text-based Tomcat Manager (error 403)
- 鉴定令牌不再有效,需要新的鉴定令牌 解决 [ User account has expired You (sumitgoel)are not allowed to ac ]
- git 报错 You are not allowed to push code to this project 的解决办法
- "Your computer could not be joined to the domain. You have exceeded the maximum number of computer accounts you are allowed to create in this domain. Contact your system administrator to have this limit reset or increased."
- Attempting to load the view of a view controller while it is deallocating is not allowed and may res
- Attempting to load the view of a view controller while it is deallocating is not allowed and may res
- git push 出现 you are not allowed to upload merges 错误提示
- 解决php It is not safe to rely on the system's timezone settings. You are *required* to use the date.
- 【问题解决】YII2 Forbidden (#403) You are not allowed to access this page
- git push 出现 you are not allowed to upload merges 错误提示
- UISearchController Attempting to load the view of a view controller while it is deallocating is not allowed and may result in undefined behavior
- git push you are not allowed to upload merges
- Codeigniter上传图片出现“You did not select a file to upload”错误解决办法
- Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use
- It is not safe to rely on the system's timezone settings. You are *required*
- anaconda2下面安装opencv2.4.13.4完成----解决默认安装的问题----Thefunction is not implemented. Rebuild the library with Windows, GTK+ 2.x orCarbon support. If you are on Ubuntu or Debian, install libgtk2.0‑dev and pkg
- Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use