Fixing IIS7 Maximum Upload Size

July 28, 2011 No Comments

If you have your Waypoint site hosted with Twin Harbor and you need to increase the maximum file upload size, you just need to contact us. But if you are hosting your own, you will need to make a change to the web.config file. Waypoint uses the standard maximum upload size attributes of ASP.Net. In IIS7 though, there are potentially 2 steps where there used to be just one. Here’s what you need to do:

Part 1:

Add the following line of code inside the system.web section of the web.config file. You can change the values of maxRequestLength and executionTimeout as you see fit. maxRequestLength is set in kilobytes, and the executionTimeout is set in seconds.

 <httpRuntime requestValidationMode="2.0" maxRequestLength="50000" executionTimeout=”1200″ />

Part 2:

IIS7 has a 30MB limit set overall, so if you are trying to allow files 30MB or larger, you’ll also need to set the following. Inside your web.config file, add the following inside the system.webServer section.

<security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="2000000000" />
      </requestFiltering>
    </security>

Thanks to this blog where I found this answer:

http://www.cyprich.com/2008/06/19/fixing-file-upload-size-limit-in-iis-7/

* News, Waypoint Development, Web Design

Leave a Reply

(required)

(required)


Are you backing up your data?

Most people know they should back up their data, but not everyone does. If you’re one of those people,...

5 Easy Choices For a Better Website.

Are you planning to design or redesign your website soon? If so, then here are a few tips that...

How to enable site maps in Waypoint

Sitemaps are simple XML files that Google and other search engines use to find the content in your website....

5 reasons you should learn how to use HTML

HTML is the backbone of everything online. Everyone should know how to read it and write it! OK, well...

How to Link Facebook to Twitter

Posting to Facebook, LinkedIn, Twitter and other social media sites is a great way to interact with your customers....

Visual Studio Environment Tips

This week I had to send my iMac in for repair. Normally I program using Windows Server 2008 running...

Fixing IIS7 Maximum Upload Size

If you have your Waypoint site hosted with Twin Harbor and you need to increase the maximum file upload...

What is an SSL Certificate?

You may have heard about SSL Certificates, also called secure certificates, or SSL Certs for short. But what are...

OSX Lion Removes Functionality

In my previous post I thought I had found a way to maintain some of the functionality that we...

Assign Applications to “Spaces” in OSX Lion

I was a happy user of Spaces in OSX 10.6 Snow Leopard. You could assign certain applications to certain...