malformed calls from js field Sizes are Different

Asked

Viewed 115 times

0

I’m trying to send an array of images to the Back-End but React Native shows this error:

Malformed calls from JS: field sizes are different

I don’t know this mistake and I can’t find a solution. Someone can help me?

const formData = new FormData();
        formData.append('id_geosite_report', idReport);
        formData.append('attractions', data);

        images.forEach((element) => {
          formData.append('images', element);
        });

        const response = await Api.post(
          `/reports/attractions/${idSolici}`,
          formData,
        );

Imagem do erro
Click to see the image in its original size

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.