Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
POST file via multipart/form-data not parsed correctly #3162
When POST-ing a file (in this case a
Please provide the following:
Provide the steps required to reproduce the problem:
The string should only contain the posted file payload
The string contains some HTTP headers, along with the posted file payload, like so
Use ASP.NET core WebAPI instead.
I've written a blog post on this here https://www.andrew-best.com/posts/adventures-in-azure-functions/ with a few more details and screenshots.
@andrewabest Those are not HTTP Headers, but multipart/form-data boundaries.
You can achieve same results as
@andrewabest Yes, ASP has "automated tools" in it's pipeline which process incoming HTTP Requests and bind it's data to controller method's parameters (based on names, conventions and attributes like
In function you have clear HttpRequest as trigger parameter, but as I said previously, you can still use many of ASP features, so you can see multipart form in