I am attempting to save an image in the browser storage once a user selects an image from their computer.
<div className="add_grp_image_div margin_bottom">
<img src={img_upload} className="add_grp_image"/>
<input type="file" className="filetype"/>
<span className="small_font to_middle">Add group image</span>
</div>
In the code above, I trigger the file upload window when a user clicks on this div. I want to display the selected image within the specified div. How can I accomplish this?
https://i.sstatic.net/e5DOz.png
This is how my HTML code section looks like: