就算是后臺(tái)-系統(tǒng)-附件設(shè)置,里面添加了bmp,上傳bmp格式圖片系統(tǒng)還是會(huì)提示你“文件類型不正確!”
解決方法
1、后臺(tái)-系統(tǒng)-附件設(shè)置,添加bmp
2、includedialogselect_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、includehelpersupload.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、includedialogselect_images.php 找到
(gif|png)
改成
(gif|png|bmp)
完成。
版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會(huì)員發(fā)布,如果侵犯了您的權(quán)益請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)刪除!謝謝!
轉(zhuǎn)載請(qǐng)注明: 織夢(mèng)dede源碼后臺(tái)上傳bmp格式圖片的解決方法