D'Arcy from Winnipeg
Musings of a Canadian Developer - Silverlight, ASP.NET, BizTalk, Life, and Technology

ASP.NET File Upload: Workaround for File Size Too Large

Wednesday, August 29, 2007 2:51 AM

Interesting solution posted by Etienne from London about how to bypass that annoying size limitation issue with file uploads.

Basically, you set the max request size in the web.config to something absolutely stupid, but in your global.asax file you test your real targeted size in the Application_BeginRequest method.

D


Feedback

# re: ASP.NET File Upload: Workaround for File Size Too Large

add to web.config tag:
<system.web>
<httpRuntime maxRequestLength="102400" executionTimeout="360"/>
</system.web> 10/16/2009 7:41 PM | HoangTinh

Post a comment