织梦提示Upload filetype not allow错误

COS、CDN
  • 问题描述:上传文件时提示“Upload filetype not allow”。
  • 解决方法
    1. 检查目录的写入权限问题,如果写入权限没问题,继续操作。
    2. 打开 /include/uploadsafe.inc.php 文件,查找 $imtypes = array("image/pjpeg", "image/jpeg", "image/gif", "image/png","image/xpng", "image/wbmp", "image/bmp",
    3. 修改为 $imgtypes = array("image/pjpeg", "image/jpeg", "image/gif", "image/png","image/xpng", "image/wbmp", "image/bmp", "image/jpg",
    4. 保存后更新缓存即可解决问题。
COS、CDN
热门