0

I want to upload the multiple images in react but when i pass the object with formdata.append it give the result of images: ["[object File],[object File],[object File]"] instead of images Array here is my code

  for (let key of Object.keys(body)) {
        formdata.append(key, body[key]);
    }

here body is the data object object which i pass in formdata.appendwhich I pass with formdata.appendresult which i get so how should be solve this issue

enter image description here

0 Answers0