NancyFx / Nancy

Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono
http://nancyfx.org
MIT License
7.15k stars 1.47k forks source link

Increase Keylimit of Request Form #2927

Closed Sago92 closed 5 years ago

Sago92 commented 5 years ago

Hello together,

I have a large view, with a lot of bindings. When I serialize the data and send them to the server with an AJAX request, not all keys are represent in the Request.Form. There is a limit of 1000 keys. Is there a way to increase the limitation?

Regards

khellang commented 5 years ago

You can set the StaticConfiguration.RequestQueryFormMultipartLimit property, which defaults to 1000:

https://github.com/NancyFx/Nancy/blob/dbdbe9428caea06c17d34a507c9216fe35abadc4/src/Nancy/StaticConfiguration.cs#L17