How to get a picture of the user's computer?

0

I'm starting to build an HTML form (bootstrap), and I want to add a div with a "add image" button so that it is possible to fetch the image inside the computer, and as soon as the photo is added, the user can type a caption below the view of it. And have another button to add new images and repeat the whole process. (js)

    
asked by anonymous 06.02.2018 / 16:49

1 answer

1

To get the image of the user's device just use the input tag of type file . For more information, see: link

<input name="myFile" type="file">
    
06.02.2018 / 18:22