Is is possible to get the ABSOLUTE path to a file using JavaScript or jQuery? These are my trials so far but the closest I can get is just the filename.
var filepath = $('input[type=file]').val();
var test = this.files;
var test2 = test[0];
var test3 = test2.fileName;
var test4 = test2.filePath;
var test5 = test2.Name;
var h = imageInput.value;
var b = document.getElementById("AcademicPhotoId");
var l = b.value;
var binary = b.getAsBinary();
$('.image-display img').attr('src', filepath);
No, that would be a security violation. (It could tell you the user’s name, etc. i.e.
c:\Users\Kirk\Desktop\uploadedfile.txt)Out of curiosity, why do you desire this information?