就算是后台-系统-附件设置,里面添加了bmp,上传bmp格式图片系统还是会提示你“文件类型不正确!”

解决方法
1、后台-系统-附件设置,添加bmp

2、\include\dialog\select_images_post.php 找到
  1. $sparr = Array("image/pjpeg", "image/jpeg", "image/gif", "image/png", "image/xpng", "image/wbmp");
改成
  1. $sparr = Array("image/pjpeg", "image/jpeg", "image/gif", "image/png", "image/xpng", "image/wbmp", "image/bmp");
3、\include\helpers\upload.helper.php 找到
  1. $sparr = Array('image/pjpeg', 'image/jpeg', 'image/gif', 'image/png', 'image/xpng', 'image/wbmp');
改成
  1. $sparr = Array('image/pjpeg', 'image/jpeg', 'image/gif', 'image/png', 'image/xpng', 'image/wbmp', 'image/bmp');
4、\include\dialog\select_images.php 找到
  1. (gif|png)
改成
  1. (gif|png|bmp)
完成

未经允许不得转载! 作者:admin,转载或复制请以超链接形式并注明出处搜库资源网

原文地址:https://sokuziyuan.com/zhimengjiaocheng/377.html发布于:2019-02-25

您需要 登录账户 后才能发表评论

发表评论

快捷回复: 表情:
评论列表 (暂无评论,1265人围观)

还没有评论,来说两句吧...