Upload image with preview
credits to StackOverFlow
by CJ Juarez
HTML
<input type="file" onchange="document.getElementById('blah').src = window.URL.createObjectURL(this.files[0])">
<br>
<br>
<img id="blah" alt="your image" width="190" height="111" />
<br>