Increasing the maximum upload limit on a Sharepoint Site
October 23, 2008 Leave a comment
A new colleague here asked me today how to configure WSS v3 for files larger than the default limit of 50mb today. I asked him to quickly tap it into google as I figured there would be hundreds of posts out there on how to do it, but sadly almost all of them seem to be for WSS v2.
Fortunately most of the principles are still the same, except there are far less steps to do :
1. Increase the Web Applications Upload limit.
2. Increase the HTTP Timeout.
3. Increase the Execution Timeout and MaxRequestLength in web.config
Typically step 1 should only be necessary on an Intranet environment, but steps 2 and 3 should only be necessary if you are on a slow connection, or getting timeout errors when attempting to upload large files.
The instructions for each step are below :
1. Open Central Administration. Go to "Application Management", then "Web Application General Settings". Ensure you are on the correct web application and modify the "Maximum Upload Size" field.
2. Open IIS, find the appropriate website and open its properties. The timeout setting is on the Website tab and in the connections setting under "Http Connection Timeout". I'd probably consider adding 120 seconds per extra 50 mb, more or less depending on your connection.
3. Edit C:Program FilesCommon FilesMicrosoft SharedWeb server extensions12TEMPLATELAYOUTSweb.config
<httpRuntime maxRequestLength="2097151" />
<httpRuntime maxRequestLength="2097151" executionTimeout="999999"/>
Edit the web.config in the home directory of the IIS Site of your web application.
<httpRuntime maxRequestLength="51200" />
<httpRuntime maxRequestLength="51200" executionTimeout="999999" />