Monday, November 1, 2010

How to increase the SharePoint Site File Upload Size.

SharePoint Default File Upload Size:

                   By default the SharePoint web applications are allows a maximum file size of 50MB, that can be uploaded into any document library. This might be users don't want downloading 50MB files over your LAN/WAN.

How to increase the Size :

Step 1:

              1.  Goto SharePoint Central Administration -> Application Management.
           2.  In Section "SharePoint Web Application Management" -> Web application general settings.


                3. Change the Default "Maximum Upload Size" 50 MB to upto 2 GB.


                4. Click OK,
                5. Reset the IIS (Start -> Run -> iisreset).


In web.config Changes :


Problem scenario  



Solution :
              1.  Change the "httpRuntime" in section "System.web" Config value as bellow.

                   Default Value:

                  

                   // 51200 = 50 x 1024  ( 50 MB)

                        Changed Value :

                  

                   // 512000= 500 x 1024  ( 500 MB)

                  This will avoid the upload time out by adding "executionTimeout" attribute.


Windows ser 2008 & IIS 7.0 Config

                   On a Windows Server 2008 computer that has IIS 7.0-only installations, you add the maxAllowedContentLength value. When you are running Windows SharePoint Services on a Windows Server 2008-based computer that has IIS 7.0, you find that you cannot upload files that are larger than 28 MB even though you have configured the large file upload settings. 

Usually, the error that users see is "The page cannot be displayed." In some circumstances, users may also see an "HTTP 404" error.

To work around this problem,

                   set in the Web.config file for the Web application to have following settings under the section:

    *  Use Notepad to open the Web application Web.config file. By default, this file is in the following folder:

      Inetpub\wwwroot\wss\VirtualDirectories\VirtualDirectoryFolder
    *
      Add the following settings under the
 section of the Web.config file:
      
      
      
      
      
      
       

Note : "maxAllowedContentLength" is in byte :) 

1 comment:

Anonymous said...

it should be executionTimeout instead of executiontimeout in your web.config file.