SharePoint Large File Upload Configuration

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 settingsclip_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 settingclip_image001[9]

You ‘should’ be all good to go now to support large file uploads to SharePoint.  There is however one more configuration if you are running on Windows Server 2008 with IIS7.  Any files over 28MB will still result in an error, and the resolution is in this blog post: Uploading Large Files to SharePoint on Windows Server 2008 and IIS7 [UPDATED LINK]

Comments (12)

  1. Anonymous says:

    If you are trying to upload files to SharePoint and are using Windows Server 2008 with IIS 7, there's

  2. Thomas Trung Vo says:

    Very simple to change maximum upload file size with SharePoint 2010 / Rất đơn giản để thay đổi kích cỡ tối đa của file tải lên với SharePoint 2010

  3. Hayball says:

    Great, helpful article - thanks!

  4. Henry says:

    Hi mate just a quick question I actually was able to make this configuration work when the Web and APP are in the same server (Development) but in my production environment it seems it is not working (3 separately servers: Web, App and DB), any ideas what should I do?

  5. shubas says:

    can i change the default location of uploaded file on SharePoint??

  6. paze says:

    looks like your archive has been hacked?

  7. Errant link says:

    The link to the "uploading-large-files-to-sharepoint-on-windows-server-2008-and-iis7" page is actually just a prompt for the download for an ASP file. Manually opening it as an HTML page in a browser shows that it just contains some old blog post titled
    "Things You Should Never Tell Your Buddies About".

  8. niranjan says:

    really very helpful, thanks!

  9. dmayo says:

    Please remove the link "Uploading Large Files to SharePoint on Windows Server 2008 and IIS7" above. It does not go where it is supposed to go. Someone has hijacked it.

  10. Dharmesh says:

    very helpful! Many Thanks!

  11. mohit.goyal says:

    Gr8 article. Thanks.

  12. Updated the erroneous link..

Skip to main content