用织梦dedecms的朋友都知道,即便在后台-系统-附件设置,里面添加了bmp,上传bmp格式图片系统还是会提示你“文件类型不正确!”,那么要如何才能够实现.bmp图片文件上传呢?1、后台-系统-附件设置,添加bmp2、找到 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 找到 改为: 本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!