dedecms图片上传失败
小编通过上网搜索后发现:是dedecms本身的编码问题!!!
查看网站源码
进入 /include/uploadsafe.inc.php
大概在45行和51行处 将$imtyoes更改为$imgtypes
代码如下:
$imtypes = array ( "image/pjpeg", "image/jpeg", "image/gif", "image/png", "image/xpng", "image/wbmp", "image/bmp" ); if(in_array(strtolower(trim(${$_key.'_type'})), $imtypes)) { $image_dd = @getimagesize($$_key); if (!is_array($image_dd)) { exit('Upload filetype not allow !'); } }