Click here to Skip to main content
15,886,830 members

Comments by Samim Safi (Top 4 by date)

Samim Safi 2-Nov-22 6:01am View    
Thanks the last one is worked for me
const file = Array.from(data.attachmentDetail[i].files);
Samim Safi 2-Nov-22 5:36am View    
Thanks I will try these all and will share update thanks a lot for Your Time
Samim Safi 2-Nov-22 0:19am View    
thanks i have tried with different index like this
for (let i = 0; i < data.attachmentDetail.length; i++) {      const file = [data.attachmentDetail[i].files];      
for (let index = 0; index < file.length; index++) {              formData.append('Attachment', file[index]);   console.log(file[index])}      formData.append('Detail', data.attachmentDetail[i].attachmentDetail);}

in this the detail index working fine but the files index send data as [object FileList]
Samim Safi 1-Nov-22 7:18am View    
Because i submit multiple images than i use index to select the image from each different index
i have all my code in link Provide if possible check and give me solution thanks