I am trying to save files along with FormData in Angular 5.
I can get the single file, but have no idea how to get all the files uploaded.
I have three image files and input
handleFileInput(files){
for (let j = 0; j < files.length; j++) {
let data = new FormData();
let fileItem = files[j]._file;
console.log(fileItem.name);
data.append('file', fileItem);
}
}