打开/include/uploadsafe.inc.php文件
找到 
$imtypes = array("image/pjpeg","image/jpeg","image/gif","image/png","image/xpng","image/wbmp","image/bmp"); 
if(in_array(strtolower(trim(${$_key.'_type'})),$imtypes)) 
$image_dd = @getimagesize($$_key); 
if (!is_array($image_dd)) 
exit('Upload filetype not allow !'); 
改成
$imgtypes = array("image/pjpeg","image/jpeg","image/gif","image/png","image/xpng","image/wbmp","image/bmp"); 
if(in_array(strtolower(trim(${$_key.'_type'})),$imtypes)) 
$image_dd = @getimagesize($$_key); 
if (!is_array($image_dd)) 
exit('Upload filetype not allow !'); 
}
  • 详解:
$imtypes = 
改成
$imgtypes = 
其他教程基本上都是错误的解决方法。