Is there a upload limit when using a web client in C #?
2 answers
ASP.NET has a default maxRequestLength of 4MB, you can change it in the web.config file.
<configuration>
<system.web>
<!-- This will handle requests up to 1024MB (1GB) -->
<httpRuntime maxRequestLength="1048576" timeout="3600" />
</system.web>
</configuration>
The length is specified in KB in the configuration file. If you are using IIS, there is an additional 4MB limit for IIS.
+3
source to share