温馨提示 购买本站程序严禁用于各种非法用途,否则,后果自负!售后QQ群:67544576,有什么问题可以联系我们,也可以和群内朋友交流沟通!交流请不要违反国家法律法规!

您当前的位置:首页 > 建站教程 > 织梦教程

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

来源:本站原创 发布时间:2021-02-07 19:59:10热度:

用织梦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)



转载请注明来源网址:https://www.60zhan.cn/showinfo-25-3785-0.html