日期:2014-05-17 浏览次数:20643 次
if ((($_FILES['logo_file1']['type'] == "image?gif")
|| ($_FILES['logo_file1']['type'] == "image?jpeg")
|| ($_FILES['logo_file1']['type'] == "image?jpg")
|| ($_FILES['logo_file1']['type'] == "image?pjpeg"))
&& ($_FILES['logo_file1']['size'] < 10485760)) {
echo "上传图片.";
} else {
echo "出错.";
}
if ((($_FILES["file"]["type"] == "image/gif")
------解决方案--------------------
($_FILES["file"]["type"] == "image/jpeg")
------解决方案--------------------
($_FILES["file"]["type"] == "image/pjpeg"))
&& ($_FILES["file"]["size"] < 20000)){
echo "上传图片."; }else {
echo "出错."; }