Monday, February 13, 2017

Increase the SharePoint 2010 Upload File Size Limit

Several times I have had SharePoint environments where there was a need for large file storage (I mean large files, 100MB+). SharePoint can accommodate, but you need to change a few settings in different parts of the overall system, or you’ll run into errors and timeouts.  This is especially true when the file size is over 50MB.  Below are some steps to take in order to configure your environment.

  1. Update file size in central admin
    1. Navigate to Maximum Upload Size in SharePoint’s Central Admin, located at: Central Administration > Application Management > Web Application General Settings. The maximum you can set is 2047 megabytes. clip_image001
  2. Increase Time-out settings in IIS 7.0
    1. In IIS, right-click on your site and navigate to Advanced settings clip_image001[5]
    2. Expand Connection Limits, and enter an increased time-out setting. clip_image002
      This is not a requirement, but something that I usually do if SharePoint is going to be getting some hefty files. You don’t want to go crazy here with the number. The default is 120, and it has a purpose. Increasing the time-out too much can be a risk. Typically I’ll bump it to 180, and something I’ll monitor and adjust appropriately if needed.
  3. 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 Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS
    3. Open Web.config with a text editor (like Notepad), and add in the executionTimeout="999999" parameter and value to the upload.aspx setting. clip_image001[7]
  4. 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. By default it will be located here: Inetpub\wwwroot\wss\VirtualDirectories\[YourSiteVirtualDirectoryFolder]
    2. Locate the web.config, and add the executionTimeout="999999" parameter and value to the httpRuntime setting clip_image001[9]

No comments:

Post a Comment

Image noise comparison methods

 1. using reference image technique     - peak_signal_noise_ratio (PSNR)     - SSI 2. non-reference image technique     - BRISQUE python pac...