By default, the maxRequestLength will be 4MB. If you are uploading a file which is larger than 4MB, please be sure to edit your web.config file by using httpRuntime attribute.
httpRuntime attribute has several properties, but the attributes that you need to take note are executionTimeout and maxRequestLength. The executionTimeout is the maximum time in seconds a request is allowed to execute before being shut down by ASP .NET automatically, default is 110s. While maxRequestLength is maximum file length that will be uploaded, in kilobytes, default is 4MB.
To set this in your web.config, it should look like as below:
<httpRuntime executionTimeout="600" maxRequestLength="1024000000" />
Hope this can help someone. Cheers!
0 comments:
Post a Comment