public onSelectedFileMultiple(event) {
if (event.target.files.length > 0) {
for (let i = 0; i < event.target.files.length; i++) {
let file = event.target.files[i]
this.files.push(file)
this.productForm.get('imagePath').setValue(this.files[i]);
console.log(this.files)
}
}
}
public onProductSubmit(): any {
const formData = new FormData();
this.files.forEach(file => {
formData.append('imagePath[]', file, file.name);
})