Recently, I installed the official dedecms version 5.7 program. When publishing an article, I discovered a problem. When uploading pictures through the editor during the publishing process, the pictures could not be uploaded and an error message was given. It's: "Upload filetype not allow...". After careful research, the author finally came up with a solution. I'd like to share it with you here.
It’s actually very simple. Find the file /include/uploadsafe.inc.php and make the following modifications on line 45 of the file:
$imtypes = array
changed to
$imgtypes = array
After the above modifications are completed, update the whole site cache and the problem will be solved.
Articles you may be interested in
- Solution to the DedeTag Engine Create File False error in dedeCMS
- How to solve the problem of Call to undefined function when running PHP curl_init error
- Detailed explanation of jQuery plug-in (Lazy Load) for delayed loading of images
- Solution to IE6 transparent PNG image display error
- dedeCMS (Dreamweaver) website server directory security Setting experience sharing
- Recommended three methods to enhance the security of Dreamweaver CMS
- Solution to the problem of excessively wide pictures in uploaded content
- FckEditor adds right-click menu-picture deletion function
http://www.bkjia.com/PHPjc/764159.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/764159.htmlTechArticleI recently installed the dedecms official version 5.7 program, but I discovered a problem when publishing an article. When uploading pictures through the editor during the article process, the pictures cannot be uploaded...