PHP7 - 上传文件未显示_FILES数组

时间:2016-04-06 07:53:43

标签: php nginx

上传文件并打印 <html> <head> <style> body{ margin:0px; } .header-container{ height:250px; width:100%; background-color: red; float: left; } .body-container{ height:500px; width:100%; background: url('http://www.htmlcodetutorial.com/document/paper.gif') repeat scroll left; float: left; } .footer-container{ height:150px; width:100%; background-color: blue; float: left; } .form-container{ margin-bottom:30px; margin-top:30px; } </style> </head> <body> <div class="header-container"></div> <div class="body-container"> <div class="form-container"> </div> </div> <div class="footer-container"></div> </body> </html> 变量时,我得到了这个

$_FILES

print_r($_FILES);

Array ( [files] => Array ( [name] => Array ( [0] => 20130919_125158.jpg ) [type] => Array ( [0] => ) [t

var_dump($_FILES);

并非所有变量都打印出来?数组的最后一部分缺失..

我无法访问array(1) { ["files"]=> array(5) { ["name"]=> array(1) { [0]=> string(5) "d.jpg" } ["type"]=> array(1) { [0]=> string(10) "image/jpeg" } ["tmp_name"]=> array(1) { [0]=> string(14) "/t

一些上传的文件提供了所有参数 - 有些并不是

$_FILES['files']['tmp_name'][0]

中看不到任何内容
/var/log/nginx/error.log

也没有PHP错误

2016/04/06 10:17:13 [warn] 29377#29377: *13009 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000026, client: xx.xx.xx.xx, server: host, request: "POST /da/api/action/upload_voucher/ HTTP/1.1", host: "host", referrer: "http://host"

0 个答案:

没有答案