Reputation: 625
I have several controllers that handle file uploads and require large timeouts and files. On the other hand I have several controllers that should execute in a more timely fashion, and would like to take advantage of the security provided by lower maxRequestLength's and executionTimeout's.
I would like to have certain web api controllers or actions be able to set maxAllowedContentLength/maxRequestLength/executionTimeout so that each action or controller can specify it's own requirements.
Is this possible?
Upvotes: 2
Views: 1065
Reputation: 1531
You could break apart the controllers into separate service endpoints all hosted under the same site, but using separate configuration for each.
Upvotes: 1