How to increase the maximum file upload size limit
Back to top
when using Microsoft IIS 7
Apparently beginning with version 7.0, Microsoft IIS has a built-in uploaded file limiter (really an �HTTP content size limiter�), and the default limit is 30,000,000 bytes (about 28.6MB). Since DocuShare on Windows may use Microsoft IIS as the initial web service, this means that DocuShare will not receive file uploads larger than this limint (IIS doesn't even notify DocuShare of the upload attempt). To increase this limit, one must set the requestLimits' �maxAllowedContentLength� to the desired limit. This can be accomplished one of three ways:
| |
- Modify the IIS configuration file directly
|
- Use the IIS manager to change the value (requires Microsoft Administration Pack for IIS 7.0 be installed)
|
- Use the command-line IIS configuration update commands to change the file
|
| |
The configuration file to be updated is:
C:\Windows\System32\inetsrv\config\applicationHost.config
(also known as:)
%SystemRoot%\System32\inetsrv\config\applicationHost.config
Note: When running on a 64-bit operating system (like Microsoft Server 2008 X64), the file is in an X32/X64 protected area, and will require that an X64-comprehending text editor be used. The built-in notepad.exe for Microsoft Server 2008 X64 works; most other aftermarket text editors (such as NotePad++ or NoteTabLite) are only X32 capable, and will not allow you to open the file: they will complain that the file does not exist, and will not show the file in the �Open file...� file browser dialog.
The path to the attribute which is to be changed is:
/configuration/system.webServer/security/requestFiltering/requestLimits@maxAllowedContentLength
In unmodified form, the requestLimits section does not exist in the IIS configuration file �
applicationHost.config
�. It seems that the default 30,000,000 limit is hard-coded into the IIS 7 service.
The command-line IIS configuration update command (i.e. option #2 above) is:
%systemroot%\System32\inetsrv\appcmd set config -section:requestFiltering -requestLimits.maxAllowedContentLength:50000000
The above command sets the limit to 50,000,000 bytes (about 47.7MB) for all applications/virtual hosts on the system. It is possible to set individual limits for distinct applications (that is, if you want DocuShare to a distinct limit from some other IIS-hosted application such as SharePoint), but is outside the scope of these instructions.
Once the maxAllowedContentLength value has been set/changed in the �
applicationHost.config
� file, recycle the IIS server using the IIS management console.
For more information please see:
http://www.iis.net/ConfigReference/system.webServer/security/requestFiltering/requestLimits
Back to top