Shahbaz Kaware

Shahbaz Kaware

  • NA
  • 535
  • 31.4k

How do I get full path of the selected file in jquery

Nov 11 2019 12:50 AM
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 

Answers (1)