就算是后臺(tái)-系統(tǒng)-附件設(shè)置,里面添加了bmp,上傳bmp格式圖片系統(tǒng)還是會(huì)提示你“文件類型不正確!”
解決方法
1、后臺(tái)-系統(tǒng)-附件設(shè)置,添加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)
完成