Proxy mode: Incorrect handling of multipart requests
See original GitHub issueI have an ASP.Net Core API method with the following signature
[HttpPut("pic")]
public ActionResult UpdatePicture(IFormFile file)
I call this method from Postman or curl or from my front-end with a small picture file. It’s ok without proxy, but with proxy file is always null.
It looks like WireMock.Net treats multipart requests as a single part request with raw data, but I can be wrong. I added reading the Form
field and it contains the right content:
I created a repro here https://github.com/LevYas/WireMockNetRepro
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
Error while handling multipart request and response in ...
To resolve this issue, complete these steps: From the Control Panel, select WS-Proxy. Select the WS-Proxy in question. Navigate to the XML ...
Read more >Unable to proxy multi-part form · Issue #760
Multiple attempts to proxy multi-part using both the browser and curl. Might be something really small but cannot seem to figure it out....
Read more >node.js - Multipart form data throwing error in express js
I have a express proxy server for angular application. From angular I am making post request to expressjs, there the same formData posting...
Read more >Nginx error 403 on file upload - passing multipart/form-data ...
I'm just trying to redirect localhost:9000 to one domain and all the subdomains to another server thats why i'm using the reverse proxy....
Read more >Multipart Form Data Passthrough throwing- Unable t...
Solved: Hi team, Client is requesting to api proxy to update the file in CMS backend. I've created a proxy with no callout's....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You are a very good tester!
I will make new official version today.
@StefH - you are incredibly fast. I’ve just tested - it works!