I'm trying to send a file within a form data in React Native using an ArrayBuffer that represents the file.
const FormData = require('form-data')
const form = new FormData()
form.append('file', file.data, { filename: file.name })
where data is the property with the array buffer.
When I send this form data, the API responds with the param must be a file, and I realized it is because the third param in form data is missing
The above works fine for web app, but doesn't work for React Native.