To increase the allowable file size for uploads in Community Server/Evolution, you need to add a httpRuntime element to the <system.web> section of the root web.config file.
You must supply two configurable parameters to this new element:
- executionTimeout="x"
- maxRequestLength="y"
Where:
"x" is the number of seconds a request can execute before being shut down by ASP.Net. The default value under ASP.Net 2.0 is 110 seconds. For example, for a timeout of 5 minutes, enter executionTimeout="300". You must set this value to an upload size you set can complete, but you should not set it too high in case of a genuine error, so your users do not have to wait too long before being notified that the operation has failed.
"y" is the maximum size in KBytes that a user will be allowed to upload. The default value is 4096 (4 Mbytes). For example, for a maxmimum file upload size of 8 Mbytes, enter maxRequestLenght="8192". Avoid setting this to a size larger than you need. The sole purpose of this setting and restriction is to prevent denial of service attacks on your site by people flooding it with requests for large file uploads.
You should now determine suitable values for your requirements. Open the web.config file in the root folder of your Community Server/Evolution website in a text editor. Locate the closing </system.web>.
Insert the following entry, using the values you have determined, just above the closing </system.web> entry as shown.
<httpRuntime
maxRequestLength="8192"
executionTimeout="300" />
</system.web>
The example above would set the maximum allowable file size to 8mb with an upload timeout value of 300 seconds or 5 minutes.
You then need to change the maximum file size using the Control Panel. Navigate to Site Administration > Site Content > User Files.
