Before html is available, it is difficult to implement php multi-file upload. you need to add multiple inputfile fields in the form. After html5 is released, we can use the html5 attribute multiple of inputfile to upload multiple files. if you need it, refer to the following: first, we will introduce the multiple attribute of file in html5.
Definition and usage
The multiple attribute specifies that multiple values can be selected for the input field. If this attribute is used, the field can accept multiple values.
Instance:
The input file in the above instance can accept multiple file upload fields.
After learning about the multiple attribute of file in html5, we will introduce how to use html5 to upload multiple files.
Instance code:
Html:
Php code:
For ($ I = 0; $ I
Thank you for reading this article. I hope it will help you. thank you for your support for this site!
For more articles about how to use html5 to upload multiple files to an instance, refer to the Chinese php website!