D'Arcy from Winnipeg
Solution Architecture, Business & Entrepreneurship, Microsoft, and Adoption

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

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

i need large size file upload 1/2/2011 6:45 AM | vijendiran

Post a comment