Sometimes we face a need when we upload large files like 100MB, and what happens is error or timeout.. so we can configure 2 different values to over come the timeout and the error.
Step 1: In Central Administration:
This is due a settings in Central Administration.
You can change this by opening to Central Administration > Application Management > select your web application and from ribbon click General Settings and choose “General Settings”
At the bottom, there is a section called “Maximum upload size” you will see the value is 50MB as this is the default .. from here you can change it.
Step 2: in IIS
We need to increase Time-Out settings in IIS 7.0
Right click your site and navigate to Advanced settings
Update SharePoint web.config
- The next thing we need to do is increase the execution timeout of the upload page that SharePoint uses (upload.aspx). The executionTimeout attribute we are adding is an optional attribute, but necessary to prevent timeouts on the page. It requires an int32 value, which will specify the amount of seconds that a request can execute before it’s shutdown by ASP.NET (the underlying framework of SharePoint pages). Although this attribute is optional, default timeout for ASP.NET 2.0 is 110 seconds, so any uploads that are taking longer than that will result in the request being shutdown – thus we are going to add the attribute and increase it at the sametime.
- To add the value; Navigate your file browser to the SharePointRoot (hive) directory, typically: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS
- Open Web.config with a text editor (like Notepad), and add in the executionTimeout=”999999″parameter and value to the upload.aspx setting.
Update SharePoint Web Application web.config
- Next, we need to also add the executionTimeout setting to the web.config for our SharePoint Web Application specifically. located here: Inetpub\wwwroot\wss\VirtualDirectories\[YourSiteVirtualDirectoryFolder]
- Locate the web.config, and add the executionTimeout=”999999″ parameter and value to the httpRuntime setting
.You are ready to go now to support large file uploads to SharePoint