I have a form that allows me with
<input type="file" name="filename" accept="image/gif, image/jpeg, image/png">
to browse and select a file.
What I want to do is display that image immediately after the image has been selected.
And this is before the “submit” button on the form has been pressed so the image almost certainly resides Client side. Can this be done?
Here You Go:
HTML
Script:
Live Demo