How can I get full path for a <input type="file">
The below example gives only the file name but not path from where it is uploaded(ex: c:/abc/x.txt).
Any hint would help. Here is the fiddle
function readURL(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function (e) {
$('#blah').attr('src', e.target.result);
}
reader.readAsDataURL(input.files[0]);
}
}
$("#imgInp").change(function(){
readURL(this);
});