Dedecms上传图片提示:Upload filetype not allow错误解决办法

COS、CDN
  1. 检查文件写入权限

    • 确保文件夹有写入权限。
  2. 修改uploadsafe.inc.php文件

    • 编辑/include/uploadsafe.inc.php,找到$imtypes数组,添加你需要的图片类型:
       
       
      $imtypes = array( "image/pjpeg", "image/jpeg", "image/gif", "image/png", "image/xpng", "image/wbmp", "image/bmp", "image/jpg" );
COS、CDN
热门