让dedecms织梦后台支持上传bmp格式的图片的教程_dedecms_CMS教程_迪尔课堂

在后台-系统-附件设置,里面添加了bmp,上传bmp格式图片系统还是会提示你"文件类型不正确!",那么有什么好的解决方法呢,请看下文。TYf迪尔课堂自学网-|第二课堂|--(官网)

1、后台-系统-附件设置,添加bmpTYf迪尔课堂自学网-|第二课堂|--(官网)

TYf迪尔课堂自学网-|第二课堂|--(官网)

2、includedialogselect_images_post.php 找到TYf迪尔课堂自学网-|第二课堂|--(官网)

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

改成TYf迪尔课堂自学网-|第二课堂|--(官网)

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

3、includehelpersupload.helper.php 找到TYf迪尔课堂自学网-|第二课堂|--(官网)

$sparr = Array('image/pjpeg', 'image/jpeg', 'image/gif', 'image/png', 'image/xpng', 'image/wbmp');

改成TYf迪尔课堂自学网-|第二课堂|--(官网)

$sparr = Array('image/pjpeg', 'image/jpeg', 'image/gif', 'image/png', 'image/xpng', 'image/wbmp', 'image/bmp');

4、includedialogselect_images.php 找到TYf迪尔课堂自学网-|第二课堂|--(官网)

(gif|png)

改成TYf迪尔课堂自学网-|第二课堂|--(官网)

(gif|png|bmp)

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持迪尔课堂。TYf迪尔课堂自学网-|第二课堂|--(官网)

扫一扫手机访问