Home > Backend Development > PHP Tutorial > dedecms prompts Upload filetype not allow_PHP tutorial when uploading image files

dedecms prompts Upload filetype not allow_PHP tutorial when uploading image files

WBOY
Release: 2016-07-13 10:57:23
Original
1178 people have browsed it

If you know a little English, you will know that Upload filetype not allow means that the file type you uploaded is not allowed, but I uploaded a picture, how can it not be uploaded? Later, I searched and the reason was that the dedecms engineer typed the wrong variable. .

Error message


is invalid in the editor, and "Upload filetype not allow" may appear


The solution is simple

Modify line 45 of /include/uploadsafe.inc.php

changed to
The code is as follows
 代码如下 复制代码

$imtypes = array

改成

$imgtypes = array

Copy code


$imtypes = array
$imgtypes = array

Finally, remember not to clear the cache. Of course, if you originally uploaded files such as php, jsp, and asp, it will definitely not be uploaded normally. If you really want to upload, we can find the permission in the system reference in the background management. For the file type to upload, just upload the suffix of the file you want to upload. http://www.bkjia.com/PHPjc/632101.html
www.bkjia.com
true
http: //www.bkjia.com/PHPjc/632101.htmlTechArticleIf you know a little English, you will know that Upload filetype not allow means that the file type you uploaded is not allowed, but I uploaded it. The question is why can’t pictures be uploaded? Later I searched for the reason...
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