Uploading large files fails (2003 and 2008)

When you attempt to upload a large file in Sharepoint, you may receive errors relating to timeouts, 404s etc.
 
To resolve this, make the following changes:
 
By default, the maximum size for uploading files is set to 50 MB. If you need to be able to upload larger files (such as when you use smigrate.exe to migrate a site between servers), you can change this setting to any value up to 2 GB (2047 MB).
To configure large file support you must increase the default upload size in SharePoint Central Administration (Web Application properties). You may also need to perform the following additional actions (depending on your hardware configuration):
 
  • Increase the maximum upload size
    Click Start, point to All Programs, point to Administrative Tools, and then click SharePoint Central Administration.
    Under Application Management, open Web Application General Settings. 
    Choose the Web application you want to change from the Drop-down Picklist.
    Under Maximum upload size, type the maximum file size (in MB) that you want to allow to be uploaded.
    Click OK.
    If IIS is timing out when you upload large files, you can configure the Connection timeout setting in IIS to allow more than the default 120 seconds (2 minutes).
  • Tune the IIS connection timeout
    Click Start, point to All Programs, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.
    Right-click the virtual server you want to configure, and then click Properties.
    Click the Web Site tab.
    In the Connections section, in the Connection timeout box, type the number of seconds you want IIS to wait before timing out.
    Click OK.
  • Increase the default chunk size for large files
    The large–file–chunk–size property must be set from the command line. This property is configured for a server or server farm, and cannot be configured for an individual virtual server. To set this property, use the following syntax:
    Stsadm.exe –o setproperty –pn large–file–chunk–size –pv <size in bytes>.
    After making a change to this property, you must restart IIS. You can restart IIS by typing iisreset on the command line.
If you want to increase the maximum limit for Web Parts…
This change is required only when working with large Web Parts. The maximum limit for Web Parts is set to 1048576 bytes by default.
  • On your server computer running Windows SharePoint Services, open Notepad.
    In Notepad, navigate to the %HomeDrive%\Inetpub\wwwroot folder and open the web.config file.
    Locate the PropertySize attribute in the configuration\SharePoint\WebPartLimits element.
    Change the PropertySize attribute to the maximum size you need.
    Save and close the web.config file.

Large file support limitations

The following features do not support files larger than 50 MB:

  • Virus checking.
  • Picture libraries.
  • Streaming files.
  • Client-side restoration of smigrate backup files (limited to 2 GB). The manifest files for an smigrate backup cannot be larger than 2 GB.
  • Site templates (limit of 10 MB per site template, including content).
Additional changes in 2008 server:
In 2008 server, there’s a second change you need to make as well –
In either the WSS3 / MOSS site’s Web.config, add / update the following line –
<system.webServer>
  <security>
  <requestFiltering>
                                              <requestLimits maxAllowedContentLength=”52428800″/>
                                </requestFiltering>
  </security>
</system.webServer>
 
If you wish to apply it across all sites, make the change in the Application.config file in %windir%\system32\inetsrv\config\applicationhost.config
 
Other Notes:
You may find these hints useful as well
 
In the web.config file for the farm (Program Files\Common Files\Microsoft Shared\Web server extensions\12\TEMPLATE\LAYOUTS), update the executionTimeout value in this line:
 <location path=”upload.aspx”>
    <system.web>
      <httpRuntime executionTimeout=”999999″ maxRequestLength=”2097151″ />
    </system.web>
  </location>
 
You may also have to do something similar if the property is declared in the Web Application –
<httpRuntime executionTimeout=”999999″ maxRequestLength=”51200″ />
Advertisements

About Brad Saide

I'm a SharePoint consultant. I'm also slowly going bald, seem to have a permanent spare tyre around my waist and enjoy socialising with friends over a beer or 10. The last 2 may possibly be related. Started working with SharePoint when the first version was in limited beta release (participated in the Technology Adoption Program while at Woolworths) and have been committed to the adoption of the technology as a business enabler ever since.
This entry was posted in Uncategorized. Bookmark the permalink.

2 Responses to Uploading large files fails (2003 and 2008)

  1. Yaohan says:

    I would be careful before doing this. One of the reasons is because your site may suddenly explode and use a lot of storage, which may make your DR strategy a lot harder to meet the SLA.The other is that with any file in SharePoint, user will need to download the file locally before being able to open it. It does not support streaming. Thus, depending on the file size and network, your user may have a sluggish user experience in working on files, thus may turn user off from sharepoint.Of course, there will be xception and you will need to upload a large file at times, but make sure you keep an eye on it and do not let it out of control.

  2. Brad says:

    Well Said Yaohan.Make sure that you have Quota profiles set up and in force across all sites – this way you can "manage" the MP3 collection that someone tries to upload while at the same time allowing the saving and storage of larger site templates (because Site Collection Administrators are not affected by quotas).

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s