我正在使用php multipe文件上传,当我尝试提交它时只返回最后选择的文件。 下面是我在html部分的代码
<input type="file" id="files" multiple name="abcdeffiles[]" />
并在php中使用
echo '<pre>'; print_r($_FILES);
并且结果我只得到最后选择的文件 排列 ( [image] =&gt;排列 ( [name] =&gt; [type] =&gt; [tmp_name] =&gt; [错误] =&gt; 4 [size] =&gt; 0 )
[abcdeffiles] => Array
(
[name] => Array
(
[0] => 808b182dfc544ec4faee769dae082072.jpg
)
[type] => Array
(
[0] => image/jpeg
)
[tmp_name] => Array
(
[0] => H:\xampp\tmp\php2057.tmp
)
[error] => Array
(
[0] => 0
)
[size] => Array
(
[0] => 72512
)
)
)