将product-edit.php, product-add.php的代码
if(!in_array(strtolower($filetype),array("jpg","png","gif"))){
exit('缩略图无效,请重新选择。');
}
改为:
$filetype = str_replace('image/','',$filetype);
if(!in_array(strtolower($filetype),array("pjpeg","x-png","jpg","png","gif"))){
exit('缩略图无效,请重新选择。');
}