-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does the file upload work for react native apps ? #350
Comments
varshith5c
changed the title
Does the file upload works for react native apps ?
Does the file upload work for react native apps ?
Jun 20, 2023
Hi. What exact header you had? |
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
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 valueThe text was updated successfully, but these errors were encountered: