You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.
I have basically copied the structure of the code in the "Multipart/form-data example: Post form data with file and data" section of the README.md.
Use case
I have to download some files (PDFs or images) from a server and display them to the user.
At first I tried with a simple GET request from a local development server, and all went as expected (kudos to you guys!), but when I tried to achieve the same results with a remote API, I got this issue.
I have to use a POST with 'multipart/form-data' for downloading the images, which are dynamically selected according to the form data parameters.
At first, I did't get either a response or an error, so I set up a proxy in my system to intercept the HTTP requests and response in React Native and that's what I got:
So, even though I explicitly set that the request to /euclide/MandocSave should be a POST, react-native-fetch-blob uses a GET instead. Obviously, with a GET you can't have a body in the request, and without that body I can't use the API to obtain what I need.
How can I achieve my use case? I have already taken a look at the Troubleshooting section without success.
Any help or hint is really appreciated, thanks!
The text was updated successfully, but these errors were encountered:
Versions
Background
I have basically copied the structure of the code in the "Multipart/form-data example: Post form data with file and data" section of the README.md.
Use case
I have to download some files (PDFs or images) from a server and display them to the user.
At first I tried with a simple GET request from a local development server, and all went as expected (kudos to you guys!), but when I tried to achieve the same results with a remote API, I got this issue.
I have to use a POST with 'multipart/form-data' for downloading the images, which are dynamically selected according to the form data parameters.
At first, I did't get either a response or an error, so I set up a proxy in my system to intercept the HTTP requests and response in React Native and that's what I got:
So, even though I explicitly set that the request to /euclide/MandocSave should be a POST, react-native-fetch-blob uses a GET instead. Obviously, with a GET you can't have a body in the request, and without that body I can't use the API to obtain what I need.
Snippet
Conclusion
How can I achieve my use case? I have already taken a look at the Troubleshooting section without success.
Any help or hint is really appreciated, thanks!
The text was updated successfully, but these errors were encountered: