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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 20:28:561100browse

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

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

    <input type="submit">
</code>

回复内容:

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

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

    <input type="submit">
</code>

JS循环到FormData

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

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

Statement:
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