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 have used this to get the file names after the upload is clicked
var json = JSON.stringify($scope.finalJson.comments); console.log(json);
Screenshot:
When I upload one file its working file, when am adding more then one file I cant get the second file name in the console. Can any one suggest me, how to get many files at once after the upload click was 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"
}]
