Closed varshith5c closed 2 weeks ago
Hi.
What exact header you had? Any examples, snippet, configuration details?
You need to install form-data and then use the code below to add the file to the request payload. Just setting the header wont do anything
const formData = new FormData()
formData.append("file", { uri: file.path, name: file.fileName, type: file.type })
No answers from the issue author
I have setup all the configuration correctly. When I hit the API using web browser I am able to upload the file . ie I am able to get
req.files
but when I send it from mobile eventhough the header is multipart/form-data I am not able to get any data inreq.files
. I always get null as a value