MY html file: Upload.html
<tr ng-repeat="expenses in finalJson.comments">
<td >
<div class="image-upload">
<label for="file-input">
<img src="../images/upload1.jpg" style="width: 20px;"/>{{data.files[0].name}}
</label>
<input id="file-input" type="file" ng-model="expenses.files" ngf-select accept="*" value=""/>
</div>
</td>
</tr>
controller: UploadController I used this to get the file names after clicking on the download
var json = JSON.stringify ($ scope.finalJson.comments); console.log (JSON);
Screenshot:

When I upload one file to its working file, when I add more than one file, I cannot get the second file name in the console. Can anyone suggest me how to get a lot of files right after the download click has been made.
[{
"index": 1,
"amount": "10",
"$$hashKey": "object:5",
"date": "2016-04-11",
"Category": "58",
"note": "wdxw",
"paid_to": "swdw",
"files": {
"webkitRelativePath": "",
"lastModified": 1450934331000,
"lastModifiedDate": "2015-12-24T05:18:51.000Z",
"name": "node-js.pdf",
"type": "application/pdf",
"size": 182649
}
}, {
"$$hashKey": "object:31",
"date": "2016-04-05",
"Category": "60",
"note": "scds",
"paid_to": "dsad",
"amount": "20"
}]
source
share