Вот мой код, и мне нужно отправить более одного файла через форматы данных в API
for (let i = 0; i <= length; i++) {
const K = "FileUpload" + i;
if (event.target.name == K) {
this.fu_Required = true;
this.fileList= event.target.files;
let file: File = this.fileList[0];
this.fileSize = this.fileList[0].size;
this.fileSizeValidate(file.size);
this.formData = new FormData();
file = this.fileList[0];
this.formData.append(K, this.fileList[0]);
}
}