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,
);