Home > Backend Development > PHP Tutorial > Solution to UPLOAD FILETYPE NOT ALLOW error when uploading images in dedeCMS_PHP Tutorial

Solution to UPLOAD FILETYPE NOT ALLOW error when uploading images in dedeCMS_PHP Tutorial

WBOY
Release: 2016-07-13 10:31:01
Original
1254 people have browsed it

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

www.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...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template