{
    分享网正式开通,我们为大家提供免费资源,欢迎大家踊跃投稿!

dedecms让后台支持.bmp格式图片上传

用织梦dedecms的朋友都知道,即便在后台-系统-附件设置,里面添加了bmp,上传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)




套路很深,不支持下载!


米微资源分享网 , 版权所有丨本站资源仅限于学习研究,严禁从事商业或者非法活动!丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:dedecms让后台支持.bmp格式图片上传
喜欢 ()分享 (0)