I have created an mvc site and I\'m posting a large amount of json form data (Content-Type:application/x-www-form-urlencoded) back to the mvc controller. When I
Content-Type:application/x-www-form-urlencoded
If you are using .net core 2.1 or above, you can use the built in RequestFormLimits attribute as shown below on a controller or action-
[RequestFormLimits(ValueCountLimit = 5000)] public class TestController: Controller
Link to official docs