Thursday, September 23, 2010

Overcome file upload issue / limit in ASP pages, Change attachment size for Mail Enable

By default, on ASP pages the file upload limit is set to 200KB. Here are the steps to increase the limit in IIS6 and IIS7

This update can be applied to change the attachment limit in Mail Enable webmail interface.


IIS 6
------
In IIS6, we need to edit the "metabase.xml" to change the limit


1 - Before you can edit the metabase.xml file you must tell IIS to allow you to edit the file.  In IIS, right click the name of the server and select properties.  Check "Enable Direct Metabase Edit".


2 - Find the metabase.xml file located in C:\windows\sytem32\inetserv and open the file in Notepad.


3 - Search for AspMaxRequestEntityAllowed and increase the value.  The default value is 204800 (200K).  Setting the value to 1000000 will allow 1 MB file uploads.


4 - You may now wish to uncheck the IIS property called "Enable Direct Metabase Edit".




IIS7
----


Here we can do this as a Server wide property or configure it for each domain

1 - Open Up IIS Manager
2 - Click on ASP
3 - Expand Limits Properties
4 - Change the default 200KB to a bigger value.

To change the value for a single domain, find and edit the ASP property by going on to that domain only.

Restart IIS

No comments: