SYMPTOMS
Attempts to upload files exceeding 30 MB in size to the Windows Server 2008 Web Server are unsuccessful and result in a "Page Not Found" message.
CAUSE
Internet Information Services 7 (IIS) on Windows 2008 Server has a default maxAllowedContentLength that does not allow to exceed 30 MB file sizes to be uploaded.
RESOLUTION
Even with the maxRequestLength attribute set higher, the web application will reject any file that is larger than 30 MB.
In order to upload files larger than 30 MB, the following code must be added to the <system.webServer> element in the applicationHost.config file (found in C:\Windows\System32\inetsrv\config):
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2000000000" />
</requestFiltering>
</security>
With the above maxAllowedContentLength, users can upload files that are 2,000,000,000 bytes (2GB) in size.
Since the maxAllowedContentLength is an int (Int32) data type, then the maximum value is 2,147,483,647.
APPLIES TO
6.3
Comments
0 comments
Article is closed for comments.