Multi file upload with PHP/Javascript and no flash

前端 未结 4 847
傲寒
傲寒 2021-02-10 14:27

I\'m trying to make a webpage that allows the uploading of multiple files at the same times. I will limit the file extensions to the most common images like JPG, JPEG, PNG and G

4条回答
  •  后悔当初
    2021-02-10 15:26

    In using JavaScript to add new upload fields, you could also have JavaScript update some "hidden" input field with the number of upload fields in the form. That way, once you click Submit, that hidden value should be submitted and it will be trivial to parse out the $_FILES array for all the uploaded files.

提交回复
热议问题