数据上传为空,去网上查了下说是,一个就是提交表单的enctype的设置,这个没问题,还有就是ini的配置问题,可是我上传的是一张只有几百K的图片而已啊!代码,html:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<form action="post" enctype="multipart/form-data" method="post">
<input name="upload_file" type="file"><br>
<input type="submit" value="提交">
</form>
</body>
</html>php的话只是输入了 print_r($_Files);
最后输出的结果是:Aarry();说明数组是空的;
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<form action="post" enctype="multipart/form-data" method="post">
<input name="upload_file" type="file"><br>
<input type="submit" value="提交">
</form>
</body>
</html>php的话只是输入了 print_r($_Files);
最后输出的结果是:Aarry();说明数组是空的;
改成
print_r($_FILES);//全大写
file_uploads = On不会是你忘了提交吧