Without using html form, how to capture the data of <input type="file">
using DOM manipulation especially if it's an image.
HTML:
<body>
<input type= "file">
</body>
Without using html form, how to capture the data of <input type="file">
using DOM manipulation especially if it's an image.
HTML:
<body>
<input type= "file">
</body>
Tyler is right and found similar answer in MDN.
https://stackoverflow.com/questions/4459379/preview-an-image-before-it-is-uploaded
MDN reference: MDN reference for file preview