[toc]
Maximum time is a limit on the amount of time it can take to upload a file; the default is 5 minutes.
Setting the time limit
Find the following line in the web.config file
<httpRuntime maxRequestLength="20480"/>
and replace it with
<httpRuntime maxRequestLength="xxx" executionTimeout="yyy" />
- maxRequestLength - The maximum file size that can be uploaded (in KB). Set to 20MB by default.
- executionTimeout - The maximum amount of time a file upload can take (in seconds). Set to 110 seconds by default.
If on IIS7
You also need to set the maxAllowedContentLength for the Request Filtering module.
Open the web.config file and find the line that looks like
<requestFiltering allowDoubleEscaping="true" />
and replace it with
<requestFiltering allowDoubleEscaping="true">
<requestLimits maxAllowedContentLength="xxx" />
</requestFiltering>
- maxAllowedContentLength - The maximum file size that can be uploaded (in bytes). This should be the same size as specified on the maxRequestLength attribute of the HttpRuntime element set above. Set to roughly 28.6MB by default.
This value is specified in bytes as opposed to kilobytes. Thus the numeric value should be 1024 times larger than that specified on the maxRequestLength attribute of the HttpRuntime element (1KB = 1024 bytes).
Choosing limits
How you set these values depends upon the type of community you're running. If, for example, you want to allow users to upload 50MB files:
With an internal Telligent Community Server installation, all of your users may be accessing the community via an internal network - in which case they may be able to upload very large files in a very short amount of time. In this situation, limiting the maximum time to three minutes may be more than enough.
Your best bet in determining how to configure these values is to first determine the maximum file size you want users to upload. From this point, determine who will be uploading these files and work out how long it will take them to upload files of that size on their network connection. That will give you the maximum time limit to set for your community.