就算是后台-系统-附件设置,里面添加了bmp,上传bmp格式图片系统还是会提示你“文件类型不正确!”
解决方法
1、后台-系统-附件设置,添加bmp
2、includedialogselect_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、includehelpersupload.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、includedialogselect_images.php找到
(gif|png)
改成
(gif|png|bmp)
完成。
以上就是织梦DEDECMS后台上传bmp格式图片的如何解决方法。从你不怕坠落的那一刻开始,天空就离你不远了。更多关于织梦DEDECMS后台上传bmp格式图片的如何解决方法请关注haodaima.com其它相关文章!