dedecms5.1不能上传BMP图片的解决方法

上传图片的时候提示bmp格式为不支持的上传格式,DedeCms提示信息:“上传的图片格式错误,请使用JPEG、GIF、PNG、WBMP格式的其中一种!

解决办法:修改 /include/FCKeditor/editor/dialog/image.php (如果你使用的不是FCK编辑器,而是HTML编辑器,则修改 /include/htmledit/image.php)的如下语句:
$sparr = Array("image/pjpeg","image/jpeg","image/gif","image/png","image/x-png","image/wbmp");

改为:

$sparr = Array("image/pjpeg","image/jpeg","image/gif","image/png","image/x-png","image/bmp","image/wbmp");


100%(0)

100%(0)

发表评论

*