在后臺(tái)-系統(tǒng)-附件設(shè)置,里面添加了bmp,上傳bmp格式圖片系統(tǒng)還是會(huì)提示你“文件類型不正確!”,那么有什么好的解決方法呢,請(qǐng)看下文。
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) |
完成。
版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會(huì)員發(fā)布,如果侵犯了您的權(quán)益請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)刪除!謝謝!
轉(zhuǎn)載請(qǐng)注明: 讓dedecms后臺(tái)支持上傳bmp格式的圖片