FlyPaper

Things that tend to stick

.ASHX uploads: The end to file size limitation


   Feb 09

.ASHX uploads: The end to file size limitation

So you’ve got a great app that uses an ASP Handler to upload images via a HTTPContext Request.  It’s great, it’s fast but it’s limited by .NET’s assumption that all files on the internet should be less than 4 Mb.  Well the answer lies in the web.config.  A short entry will change the world.

Add this to the <system.web> section.

  <httpRuntime executionTimeout="240" maxRequestLength="10000" /> 

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply