How do I store the image that will be uploaded to the input type file into a variable to then be previewed into the DOM? I'm using a MEAN stack if this helps with an answer.
<form method="post">
<label class="app-file-input button" flow-init>
<span>Upload</span>
<i class="icon-enter"></i>
<input type="file" flow-btn/>
<img flow-img="$flow.files[0]" />
</label>
</form>
I've read once the image has been uploaded it gets stored in a temp storage. How would I access that to then preview the image before uploading?
Cheers