Is there a way to drag an image from a browser window into a file input that I developed?
Looking for assistance in creating an event that allows me to get the image when dragging it to an input.
While I have successfully created an event to obtain the image using ctrl-v, I am wondering if it's possible to achieve the same through Drag & Drop from a browser window.
Thank you for any help!
<div class="drop">
<div class="cont">
<div class="desc">
drop / paste here your images
</div>
</div>
<div class="abc">
<img class="img-responsive drag" style="border-radius: 8px;">
</div>
<input type="file" id="files" multiple (change)="detectFiles($event)" accept="image/*">
</div>