Home > php教程 > php手册 > dedecms上传图片文件时提示 Upload filetype not allow

dedecms上传图片文件时提示 Upload filetype not allow

WBOY
Release: 2016-06-13 09:57:17
Original
1237 people have browsed it

如果懂一点英文的就知道Upload filetype not allow ,是你上传的文件类型不允许,但是我上传的是图片怎么能不可以上传呢,后来搜索了一下原因是dedecms工程师打错了变量了。

错误提示


在编辑器里是无效的,可能会出现“Upload filetype not allow”


解决办法就简单了

修改 /include/uploadsafe.inc.php 第45行

 代码如下 复制代码

$imtypes = array

改成

$imgtypes = array


最后记得别忘记了清除缓存了,当然如果你本来就是上传的如php,jsp,asp文件那肯定是无法正常上传了哦,如果你确实要上传我们可以在后台管理中有个系统参考中找到允许上传的文件类型,把你要上传的文件后缀上传就好了。

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template