Preview of the Image in a modal via a button

0

I have a question about how I can do the following situation:

I have a <input type="file"> with bootstrap classes and next to a button, this button would have the function of, when I uploaded this image, pressing the button would open a modal with the preview of the image contained in the input . I just scoured the darkest part of surfaceweb and just found it to show the preview in <div> .

Is there any way to load the browser image into the input, does it send a preview of it to the modal that opens when the button is pressed?

For now I have nothing in the script, as for the modal and the button, they are simple with no function in them.

    
asked by anonymous 10.05.2018 / 15:15

0 answers