Multi file upload with PHP/Javascript and no flash

前端 未结 4 849
傲寒
傲寒 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:04

    Here is the algorithm:

    You add the new file input fields to your form. Each of this field MUST have a unique name. Then, on the server side, you loop through the $_FILES array looking how many files have been uploaded and handling them.

提交回复
热议问题