I have this input typed file, when a user uploads a photo(not submit), it clones this photo and appends it to the div
<input type="file" class="upload"></input>
<button class="submit"></button
<div class="append-here" style="width:500px, height: 500px; background:red;></div>
<script>
var y = $(".append-here")
$(".upload").val().clone(true, true).appendTo(y);
</script>