I have got on fileupload control as below in my html.
<input type="file" id="fuExcel" name="fuExcel">
Now I want to read full file path from above fileupload using jquery, for example if I select any file from location (d:\test\myexcel.xslx), I am getting myexcel.xslx only from below jquery code.
var excelfilepath = $('input[type=file]').val();
It is not possible because is a security feature in modern browsers.
For example: if you try the code you got on IE8 you will get all path.
but if you do it in chrome or other you will get just the name of the file or a kind of “C:\fakepath\”
Hope this helps you 🙂