When dedecms uploads an image file, the system prompts Upload filetype not allow.

Source: Internet
Author: User

Error message


It is invalid in the editor and may contain "Upload filetype not allow"


The solution is simple.

Modify/include/uploadsafe. inc. php row 45th

The code is as follows: Copy code

$ Imtypes = array

Change

$ Imgtypes = array


In the end, remember not to forget to clear the cache. Of course, if you are uploading files such as php, jsp, and asp files, you will not be able to upload them normally, if you really want to upload files, we can find the file type that can be uploaded in the background management system reference, just upload the file suffix you want to upload.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.