Some details when using URL.createObjectURL to preview images on the front end
2023-03-18
1 min read
- URL.createObjectURL
- define img.src to create an img element that will display the picture
- use appendChild instead of innerHTML
- URL.revokeObjectURL