Click here to Skip to main content
15,943,089 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
for (var i = 0; i < $('input[name="documentType"').length; i++) {
var file = $('input[name="fileInput"').get(i).files[0];
var docTypeId = $('input[name="documentType"')[i].value;
if (file != undefined && docTypeId != undefined) {
fileTotCnt = fileTotCnt + 1;
}
}

What I have tried:

The above is my coder oinly taking the image name. I want the full path with file name with the extension in jquery plz help
Posted
Updated 10-Nov-19 23:32pm

1 solution

You can't get this for security reasons. To preempt your next question; no there is no way around this.

There is no need for you to know the client path anyway as there is nothing you can reasonably do with that information. If you think you need it then explain why and someone can probably provide an alternative solution.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900