I want a file selector which gives me the path.Like a file selector selects the file path and upload the file.Is it possible that something like that gives me the real path of the entity?
Like i select a file abc.mp3 and i get its full path d:\xxxx\xxxx\abc.mp3.I dont know is it is possible or not is there something like this in jQuery?
Regards
Himanshu Sharma
Generally the answer is no. For security, most browsers have adopted the policy to not allow the path to be available in JavaScript.
I am fairly certain some older browsers used to keep the entire path in the file field’s value, but the policy that all current major browsers use is to only keep the filename without the file path.