时间:2021-07-01 10:21:17 帮助过:7人阅读
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 "出错."; }