Category | Type | Problem |
---|---|---|
Folder HelpDesk | Upgrade | Attachment size: Is there a way to raise the attachment size limit on the web form? We find 200kb too small. |
Attachment size: Is there a way to raise the attachment size limit on the web form? We find 200kb too small.
By default the IIS web server restricts the size of ASP requests and file uploads, so that for example IIS 6 (Windows Server 2003) has a limit of 200 kb. This is possible to change.
Please follow the instructions below.
For IIS 6:
Go to IIS and right click the server, select Properties, and check the box âAllow changes to MetaBase configuration while IIS is runningâ. If after this step the metabase file is still locked, try turning off IIS or even restarting the machine in safe mode.
Open in a text editor the Metabase file, which can be found at c:\Windows\System32\Inetsrv\MetaBase.xml.
The variable AspMaxRequestEntityAllowed limits the number of bytes in the page request (by default 200KB); change the value to 1073741824 (unlimited) or to a limit of your choice.
Check whether the same variable shows up in other places in the file and change them too.Â
For IIS 7:
Highlight your website, then open the âAdvanced SettingsâĶâ link in the right-most panel. Set âConnectionTime-out (seconds)â to a much bigger number. For example: â3600â, which is an hour. Close âAdvanced SettingsâĶâ.
While still highlighting your website, click on the âASPâ tab, then expand âLimits Propertiesâ and set âMaximum Requesting Entity Body Limitâ to 1073741824.
Finally, open a command window as an administrator and run the command âc:\windows\system32\inetsrv\appcmd set config -section:requestFiltering -requestLimits.maxAllowedContentLength:100000000â. This tells IIS the largest amount you may upload, in this case, itâs 100MB. You may set your number accordingly.