The default allowed file size for upload in IIS 6 is rather small, which is obviously not particularly good when it comes to a site with some or other upload functionality. Thankfully though, changing this default setting doesn’t require that much efforts, though you will need administrative access to the web server in question.
The steps are:
1. Open up the Internet Information Services Manager (IIS).
2. Right-click on the top level server and choose ‘Properties’.
3. On the resulting dialog, locate and tick the ‘Enable Direct Metabase Edit’ checkbox. (This allows you to make changes to the IIS metadata file without having to shutdown or restart IIS).
4. Locate your MetaBase.xml file: %Windows_Dir%System32InetsrvMetaBase.xml (Make sure to make a copy of this file for just in case!)
5. Find the AspMaxRequestEntityAllowed attribute in the XML file and change its value to the desired maximum file upload size that you want to employ (note that the value is stored in bytes so you’ll need to do the necessary calculations using good old 1024).
6. Save the MetaBase.xml file and that’s it, you;re done. There is no need to reboot the server or restart IIS.
7. Though just to protect yourself, go back to step 3 and uncheck the “Enable Direct Metabase Edit” box on your IIS server properties’ page.
You might also enjoy:
-
If you've ever tried to do an ASP include using the following sort of input line, , on an IIS web server and you've come up short, the 500.100 error message ...
-
If you ever get an php error message stating URL file-access is disabled in the server configuration, chances are that you are trying to include a remote fi ...
-
The easiest way to set up a custom PHP 404 error page under Apache is to make use of the .htaccess file, a system file that allows you to override some of t ...
-
The Adobe AIR platform has introduced the new .air type of install file for their cross-platform offering and while many eager Adobe AIR programmers are off ...
-
A large number of hosting companies exclusively run Linux-based servers, simply because they are cheaper to run and thereby allows the hosting company to of ...