[英]PHP won't process multiple files (Chrome)
I basically want to upload multiple files into a php to process but php only takes one of the files I selected to upload 我基本上想将多个文件上传到php中进行处理,但是php仅采用我选择上传的文件之一
my html: 我的html:
<form action="upload.php" method="post" enctype="multipart/form-data">
<input type="file" name="userfiles[]" multiple="multiple">
<input type="submit" value="Upload">
</form>
my php for now: 我的PHP现在:
echo '<pre>', print_r($_FILES), '</pre>';
$countfiles = count($_FILES['file']['name']);
and the output: 和输出:
Array
(
[file] => Array
(
[name] => pigeon.jpg
[type] => image/jpeg
[tmp_name] => D:\Programs\xampp\tmp\phpA3DF.tmp
[error] => 0
[size] => 105291
)
)
1
no matter how many files I select only one gets processed. 无论我选择多少个文件,都只会处理一个文件。 Thanks in advance :) 提前致谢 :)
IE works fine for some reason.. IE可以正常运行,因为某些原因。
事实证明,我要做的就是在chrome之前启动Apache。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.