javascript - jquery uploads multiple pictures and takes pictures for display
黄舟
黄舟 2017-06-27 09:19:43
0
2
1292


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,

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(2)
学霸

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template