Under the section 'Polymorphic model binding' it would be extremely helpful if it stated that the Request Content-Type header must be multipart/form-data or application/x-www-form-urlencoded. I wasted a considerable amount of time trying to figure out why it wasn't working for application/json.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: cfb00531-4ac6-8bf6-9bd8-1eed6446397f
Version Independent ID: ed418d09-6c33-699a-0d48-9aabc99457be
Under the section 'Polymorphic model binding' it would be extremely helpful if it stated that the Request
Content-Type
header must bemultipart/form-data
orapplication/x-www-form-urlencoded
. I wasted a considerable amount of time trying to figure out why it wasn't working forapplication/json
.Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.