就算是后台-系统-附件设置,里面添加了bmp,上传bmp格式图片系统还是会提示你“文件类型不正确!”
解决方法
gt;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://htmlbk.com/dedecms/100.html
温馨提示:该文档最后一次修改时间为2019-03-30 18:42:21,请注意相关的内容是否还可用!