-5

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>
Deke
  • 3,837
  • 2
  • 35
  • 53

1 Answers1

0

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

Deke
  • 3,837
  • 2
  • 35
  • 53