title: Catching "Maximum request length exceeded"
body: <p>I'm writing an upload function, and have problems catching "System.Web.HttpException: Maximum request length exceeded" with files larger than the specified max size in <code>httpRuntime</code>in web.config (max size set to 5120). I'm using a simple <code>&lt;input&gt;</code> for the file.</p>
  
  <p>The problem is that the exception is thrown before the upload button's click-event, and the exception happens before my code is run. So how do I catch and handle the exception?</p>
  
  <p><strong>EDIT:</strong> The exception is thrown instantly, so I'm pretty sure it's not a timeout issue due to slow connections.</p>