有一位站長朋友找到這篇Dedecms文章:如何處理織夢DEDECMS網(wǎng)站后臺無法上傳圖片的步驟詳解,按照上面的方法進(jìn)行處理,還是無解,于是小編 打開這個文件進(jìn)行代碼分析,結(jié)果發(fā)現(xiàn)這樣的方法解決了根本,但是站長朋友說當(dāng)上傳還是失敗,無憂主機(jī)小編也測試了還是不行,所以百度了很長時間,終于知道這些問題是怎么發(fā)生的了,于是小編就整理出這篇的文章的完結(jié)篇,思路步驟如下。(步驟不分先后只要解決問題即可)第一步:排除php虛擬主機(jī)文件寫入權(quán)限問題(問題無法解決往下看) 第二步:文本編輯器(editplus)打開文件目錄:/include/uploadsafe.inc.php(問題無法解決往下看) 查找:(大致在45行)
$imtypes = array ( "image/pjpeg", "image/jpeg", "image/gif", "image/png", "image/xpng", "image/wbmp", "image/bmp", 修改為: $imgtypes = array ( "image/pjpeg", "image/jpeg", "image/gif", "image/png", "image/xpng", "image/wbmp", "image/bmp", 注意:(修改完上傳后更新緩存) 第三步:文本編輯器(editplus)打開文件目錄:/include/uploadsafe.inc.php 查找:(大致在47行至48行)
$imtypes = array ( "image/pjpeg", "image/jpeg", "image/gif", "image/png", "image/xpng", "image/wbmp", "image/bmp", 修改為:
$imtypes = array ( "image/pjpeg", "image/jpeg", "image/gif", "image/png", "image/xpng", "image/wbmp", "image/bmp",“image/jpg”,
文章來源:黎青松SEO博客
來源地址:http://www.alitaohuo.com/CMSjiaocheng/zhimengjiaocheng/2044.html
申請創(chuàng)業(yè)報道,分享創(chuàng)業(yè)好點子。點擊此處,共同探討創(chuàng)業(yè)新機(jī)遇!