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


<form id="myForm" method="post">


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

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

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

php

牛奶吐司不好吃 9 years, 2 months ago

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

伽利略D铁球 answered 9 years, 2 months ago


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

神D捨てる子 answered 9 years, 2 months ago

JS循环到FormData

幽灵体飞射导弹 answered 9 years, 2 months ago

Your Answer