ardalis / ardalis/ApiEndpoints
Get Payload in body as well as the uploaded File
- Dominant language
- C#
- Stars
- 3.2k
- Forks
- 232
- PR merge metrics
- No merged PRs in 30d
Description
- NuGet Package Version: 4.1.0
- .NET SDK Version: 8
Issue is combining FromForm and FromBody not working as expected. Unable to upload file and other properties together. (Note one property type is JsonElement, basic types like bool and int work as expected).

I am not able to upload the MRP in github issue but sharing link of the discord post for this. https://discord.com/channels/143867839282020352/1184466944015994980
I have also added comments on what i needed to do in the project.
Contributor guide
Research direction
The report concerns ASP.NET Core request binding with FromForm, FromBody, uploaded files, and a JsonElement property, but names no repository files or tests. Start by reproducing the described request against the relevant endpoint code and verify how the file and payload are bound together. Done means both the uploaded file and the JsonElement payload are available as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100