Recently when I was writing code, I encountered a function that I couldn’t solve. As shown in the picture above, when I click on the small camera icon, I can upload multiple pictures and take pictures. Now I The idea is to put an input
type=file tag on the small camera icon, but just hide it, so clicking the small icon can realize the image upload and photo taking functions, but the code I am looking for only supports uploading each time. One picture, and the camera function, cannot upload multiple pictures. I want to upload multiple pictures. I wonder if you have any ideas to solve this bug,
You are missing a multiple attribute?
Input type=file supports selecting multiple photos from the album. If I remember correctly, the paths will be separated by English commas. Then you only need to cut the string and upload it in a loop.