<input type="file" onChange="document.imagen.src='file:///' + this.value"><br><br> Vista previa:<br><br> <img src="imagen_defecto.png" name="imagen">