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
The code is as follows
代码如下 |
复制代码 |
$imtypes = array
改成
$imgtypes = array
|
|
Copy code
|
$imtypes = array |
changed to
$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.comhttp: //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...