dedecms上传图片提示:Upload filetype not allow错误办理步伐

dedecms上传图片提示Upload filetype not allow,如那里理惩罚织梦DEDECMS网站靠山无法上传图片的步调详解,凭据上面的要领举办处理惩罚,照旧无解,于是小编 打开这个文件举办代码阐明,功效发明这样的要领办理了基础,可是站长伴侣说当上传照旧失败,小编也测试了照旧不可,所以百度了很长时间,终于知道这些问题是怎么产生的了,于是小编就整理出这篇的文章的完结篇,思路步调如下。

 

第一步:解除php虚拟主机文件写入权限问题(问题无法办理往下看)

 

第二步:文本编辑器(editplus可能DW软件)打开文件目次:/include/uploadsafe.inc.php(问题无法办理往下看) 查找:(大抵在45行)

 

$imtypes = array

(

"image/pjpeg", "image/jpeg", "image/gif", "image/png",

"image/xpng", "image/wbmp", "image/bmp",

 

修改为:

 

$imgtypes = array

(

"image/pjpeg", "image/jpeg", "image/gif", "image/png",

"image/xpng", "image/wbmp", "image/bmp",

 

留意:(修改完上传后更新缓存) 第三步:文本编辑器(editplus)打开文件目次:/include/uploadsafe.inc.php 查找:(大抵在47行至48行)

 

$imtypes = array

(

"image/pjpeg", "image/jpeg", "image/gif", "image/png",

"image/xpng", "image/wbmp", "image/bmp",

 

修改为:

 

$imtypes = array

(

"image/pjpeg", "image/jpeg", "image/gif", "image/png",

"image/xpng", "image/wbmp", "image/bmp",“image/jpg”,

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wsjxyy.html