skip to Main Content

multipart/form-data request failing in react-native

I get the following error when I set the 'Content-Type' as 'multipart/form-data' in react-native. Below is my code - const formData = new FormData(); formData.append('org_id', org_id); formData.append('ans', userAns); formData.append('remark', userRemark); formData.append('img', userImg); files.forEach(file => { formData.append('files', { name: file.fileName, type:…

VIEW QUESTION
Back To Top
Search