Documentation Center

Configuring the maximum size of Web-based uploads to Content Manager

By default, IIS and SDL Web general Web interface settings allow users to upload only relatively small files to a Web site (30 MB or less), which may be too small for your users' needs. To enable larger Web-based uploads, edit your Application Host configuration file and the web.config file of your SDL Web-based Web site.

Before you begin

You need to be logged in as an administrator, or edit files as an administrator, to perform this task.

About this task

You can enable large uploads in the following ways:

Procedure

  1. Access your Content Manager server.
  2. Navigate to %TRIDION_HOME%\Web\
  3. Open web.config for editing.
  4. Ensure that the file contains the following:
    <configuration>
    	<system.webServer>
    		<security>
    			<requestFiltering>
    				<requestLimits maxAllowedContentLength="MAXSIZE" />
    			</requestFiltering>
    		</security>
    	</system.webServer>
    </configuration>

    where MAXSIZE is your expected maximum upload size (in bytes). Your value must not exceed the maximum upload size configured for the Core Service, a value which defaults to 2 GB. Your value also must not exceed the maximum upload size allowed by IIS, which is 2 GB.

  5. Save and close web.config.
  6. Navigate to %TRIDION_HOME%\Web\WebUI\WebRoot\.
  7. Open web.config for editing.
  8. Change the value of maxRequestLength in the following element to the desired upload size (in Kilobytes):
    <httpRuntime maxRequestLength="32768" />
  9. Save and close web.config.
  10. Navigate to %WINDIR%\system32\inetsrv\config\.
  11. In this location, open ApplicationHost.config for editing.
  12. In the <system.web> section, find the httpRuntime element.
  13. In this element, remove the maxRequestLength attribute altogether or set it to your expected maximum value (in kilobytes). Your value must not exceed the maximum upload size configured for the Core Service, a value which defaults to 2 GB.
  14. Also in this element, set or change the executionTimeout to the number of seconds you want to allow IIS to upload content. Your value must not exceed the timeout value configured for uploads to the Core Service, a value which defaults to 600 seconds (10 minutes).
  15. In the <system.webServer> section, find the requestLimits element, which has a maxAllowedContentLength attribute. Either remove this attribute altogether or set it to your expected maximum value (in bytes). Your value must not exceed the maximum upload size configured for the Core Service, a value which defaults to 2 GB. Your value also must not exceed the maximum upload size you have just configured in web.config.
  16. Save and close ApplicationHost.config.