最近安装了dedecms官方5.7版本的程序,在发表文章的时候却发现了一个问题,就是在发表文章过程中通过编辑器上传图片的时候,图片上传不了,给出的错误提示是:"Upload filetype not allow......",经作者仔细研究终于想出了解决办法,在这里和大家分享一下。
其实很简单,找到 /include/uploadsafe.inc.php 这个文件,在该文件的第45行处做下面的修改:
$imtypes = array
改成
$imgtypes = array
以上修改完毕更新一下全站缓存这个问题就解决了。
您可能感兴趣的文章
- dedeCMS中提示DedeTag Engine Create File False的错误的解决办法
- 该如何解决php运行出现Call to undefined function curl_init错误
- 延迟加载图片的 jQuery 插件(Lazy Load)用法详解
- IE6透明PNG图片显示错误的解决办法
- dedeCMS(织梦)网站服务器目录安全设置经验分享
- 三种加强织梦CMS安全性的方法推荐
- 上传内容中的图片过宽的解决办法
- FckEditor添加右键菜单-图片删除功能
Statement
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

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article
How to fix KB5055523 fails to install in Windows 11?
3 weeks agoByDDD
How to fix KB5055518 fails to install in Windows 10?
3 weeks agoByDDD
Roblox: Dead Rails - How To Tame Wolves
4 weeks agoByDDD
Strength Levels for Every Enemy & Monster in R.E.P.O.
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Roblox: Grow A Garden - Complete Mutation Guide
2 weeks agoByDDD

Hot Tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Atom editor mac version download
The most popular open source editor

Dreamweaver Mac version
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SublimeText3 Mac version
God-level code editing software (SublimeText3)
