Home > Backend Development > PHP Tutorial > 一个file 怎上传多个文件,到php文件接收

一个file 怎上传多个文件,到php文件接收

WBOY
Release: 2016-06-06 20:28:56
Original
1079 people have browsed it

<code>    Files: <input type="file" id="files" name="files" multiple><br>

    <div id="selectedFiles"></div>

    <input type="submit">
</code>
Copy after login
Copy after login

回复内容:

<code>    Files: <input type="file" id="files" name="files" multiple><br>

    <div id="selectedFiles"></div>

    <input type="submit">
</code>
Copy after login
Copy after login

JS循环到FormData

<code>Files: <input type="file" id="files" name="files[]" multiple><br></code>
Copy after login

$_FILE是个数组 百度一下就明白了

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template