So, I recently wrote a simple service for uploading files to my server. Everything is working fine. My web.config looks like this (maximum upload size is limited to 20 MB):
<configuration> <system.web> <httpRuntime maxRequestLength="20480" executionTimeout="600" /> <httpHandlers> <add path="api*" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*" /> </httpHandlers> ... </system.web> </configuration>
All my routes start with / api /, for example, my download service is located in / api / documents / upload.
Now my question is: is it possible to determine different download sizes for different services? (in my example, each service is limited to 20 MB!)
I tried some things with the location tag, but it did not work with the httpRuntime tag. Has anyone already tried something like this?
c # web-config servicestack
osterbΓ€r
source share