Uploading Large Files to SharePoint

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

Large Files

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.

2

Step 2: in IIS We need to increase Time-Out settings in IIS 7.0 Right click your site and navigate to Advanced settings

Large Files

Large Files

Update SharePoint web.config
1. 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.
2. To add the value; Navigate your file browser to the SharePointRoot (hive) directory, typically: C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions12TEMPLATELAYOUTS
3. Open Web.config with a text editor (like Notepad), and add in the executionTimeout=”999999″parameter and value to the upload.aspx setting.

5

Update SharePoint Web Application web.config
1. Next, we need to also add the executionTimeout setting to the web.config for our SharePoint Web Application specifically. located here: InetpubwwwrootwssVirtualDirectories[YourSiteVirtualDirectoryFolder]
2. Locate the web.config, and add the executionTimeout=”999999″ parameter and value to the httpRuntime setting

6

You are ready to go now to support large file uploads to SharePoint.

Check out Mai Omar Desouki blog for more interesting articles.Check out our resource centre for more SharePoint content from other SharePoint specialists!

Stay tuned for more SharePoint content by joining our community or by following us on twitter or facebook

Share this on...

Rate this Post:

Share: