question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proxy mode: Incorrect handling of multipart requests

See original GitHub issue

I 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: 2020-05-17 14_34_07-WireMock Net Solution (Debugging) - Microsoft Visual Studio

I created a repro here https://github.com/LevYas/WireMockNetRepro

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
StefHcommented, May 23, 2020

You are a very good tester!

I will make new official version today.

0reactions
LevYascommented, May 23, 2020

@StefH - you are incredibly fast. I’ve just tested - it works!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found