I'm attempting to grab the value from the file input in html and placing it immediately into a div I have like so:
Html:
<div class='pushLeft noOverflow' id='areaUpload'>
<input type='file' id='uploadFileHere' />
</div>
jQuery:
$(document).on("change", "#uploadFileHere", function(){
$("#areaUpload").html("<img src='" + $("#uploadFileHere").val() + "' />");
});
The problem I'm having is that the image doesn't come up. I checked the file path and it was returning: C:\fakepath\filenamehere.jpg
So how would I be able to fix this issue?