先检查目录的写入权限问题,如果写入权限没问题就操作下面步骤
打开文件目录:/include/uploadsafe.inc.php
查找:(大致在45行)
$imtypes = array("image/pjpeg", "image/jpeg", "image/gif", "image/png","image/xpng", "image/wbmp", "image/bmp",
改成:
$imgtypes = array("image/pjpeg", "image/jpeg", "image/gif", "image/png","image/xpng", "image/wbmp", "image/bmp",
查找
$imtypes = array("image/pjpeg", "image/jpeg", "image/gif", "image/png","image/xpng", "image/wbmp", "image/bmp",
改成
$imtypes = array("image/pjpeg", "image/jpeg", "image/gif", "image/png","image/xpng", "image/wbmp", "image/bmp",“image/jpg”,
保存后更新缓存就可以解决问题。