Uploading Large files to SharePoint on Windows Server 2008 and IIS7

If you are trying to upload files to SharePoint and are using Windows Server 2008 with IIS 7, there's one additional step you need to make to your environment other than the typical Large File changes needed.

Basically, any file over 28mb will error out upon uploading. The dreaded "The page cannot be displayed". Ugh.  Luckily, the solution is rather simple (as long as your environment is already configured for large file support… see post: SharePoint Large File Upload Configuration). You need to add another setting to your web.config to support the maximum allowed content length (maximum size of a file that you support).

  1. To change it: navigate to the SharePoint webapplication directory, by default: inetpub\wwwroot\wss\VirtualDirectories\VirtualDirectoryFolder

  2. You need to add the following configuration to your config file:

    <system.webServer><security><requestFiltering><requestLimits maxAllowedContentLength="52428800"/></requestFiltering></security></system.webServer>

    image 
    The length that you add needs to be in bytes, and needs to match the file size that you want to upload. For example, I'm using 158334976 bytes here because in Central Admin I have maximum file upload size set to 150mb. For a utility to convert bytes, see this post .

Make sure that you set this a little larger than what you have configured in SharePoint… that way your users will still get an error message stating that they are exceeding the file size limit.

Happy uploading.