织梦后台不支持上传bmp格式图片的解决方法
栏目:DedeCMS 来源:网络 关注:0 时间:2019-08-30在织梦CMS 管理后台 - 系统 - 附件设置,里面添加了bmp,上传bmp格式图片系统还是会提示你“文件类型不正确!”
解决方法:
1、后台-系统-附件设置,添加bmp
2、打开“/-/include/-/dialog/-/select_images_post.php”,找到
$sparr = Array("image/pjpeg", "image/jpeg", "image/gif", "image/png", "image/xpng", "image/wbmp");
改成
$sparr = Array("image/pjpeg", "image/jpeg", "image/gif", "image/png", "image/xpng", "image/wbmp", "image/bmp");
3、打开“/-/include/-/helpers/-/upload.helper.php”,找到
$sparr = Array('image/pjpeg', 'image/jpeg', 'image/gif', 'image/png', 'image/xpng', 'image/wbmp');
改成
$sparr = Array('image/pjpeg', 'image/jpeg', 'image/gif', 'image/png', 'image/xpng', 'image/wbmp', 'image/bmp');
4、打开“/-/include/-/dialog/-/select_images.php”,找到
(gif|png)
改成
(gif|png|bmp)
完成。
本文标题:织梦后台不支持上传bmp格式图片的解决方法
本文地址:http://www.q0738.com/dedecms/15197.html