search

Home  >  Q&A  >  body text

javascript - jquery uploads multiple pictures and takes pictures for display


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,

黄舟黄舟2800 days ago1350

reply all(2)I'll reply

  • 欧阳克

    欧阳克2017-06-27 09:21:43

    You are missing a multiple attribute?

    reply
    0
  • 世界只因有你

    世界只因有你2017-06-27 09:21:43

    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.

    reply
    0
  • Cancelreply