Saturday, February 04, 2012
 
   
 
O-DL: Changing default Upload file size in IIS7   Minimize
Location: BlogsOpenDNN blog    
Posted by: Xepient Solutions 1/16/2009
In order to configure IIS7 to accept upload sizes greater than the default, your web.config settings will need to be modified according to the instructions provided (reproduction of a Microsoft article)
IIS 7.0: requestLimits Element for requestFiltering (IIS Settings Schema)

 

Specifies limits on requests processed by the Web server.

IIS 7.0: configuration Element (IIS Settings Schema)
  IIS 7.0: system.webServer Section Group (IIS Settings Schema)
    IIS 7.0: security Element (IIS Settings Schema)
      IIS 7.0: requestFiltering Element for security (IIS Settings Schema)
        IIS 7.0: requestLimits Element for requestFiltering (IIS Settings Schema)
 
<requestLimits
      maxAllowedContentLength="uint"
      maxUrl="uint"
      maxQueryString="uint"
>
   <headerLimits>...</headerLimits>
</requestLimits>

The following sections describe attributes, child elements, and parent elements for this section.

Attributes

Attribute

Description

maxAllowedContentLength

Optional uint attribute.

Specifies the maximum length of content in a request, in bytes.

The default value is 30000000.

maxQueryString

Optional uint attribute.

Specifies the maximum length of the query string, in bytes.

The default value is 2048.

maxUrl

Optional uint attribute.

Specifies maximum length of the URL, in bytes.

The default value is 4096.

Child Elements

Element

Description

headerlimits

Optional element.

Specifies size limits for HTML headers.

Parent Elements

Element

Description

configuration

Specifies the root element in every configuration file that is used by IIS 7.0.

system.webServer

Specifies the top-level section group (in ApplicationHost.config) in which this element is defined.

security

Specifies the section group that contains security-related sections.

requestFiltering

Specifies configuration settings for request filtering.

Default Configuration

None.

Configuration locations

Machine.config

ApplicationHost.config

Root application Web.config

Application Web.config

Directory Web.config

Requirements

Microsoft Internet Information Services (IIS) version 7.0

Permalink |  Trackback
     
Search the Blog   Minimize
     
Blog List   Minimize
     
Blog Archive   Minimize