max file upload size change in web.config

Posted by Christopher Johnson on Stack Overflow See other posts from Stack Overflow or by Christopher Johnson
Published on 2011-11-29T17:27:03Z Indexed on 2011/11/29 17:50 UTC
Read the original article Hit count: 338

using .net mvc 3 and trying to increase the allowable file upload size.

This is what I've added to web.config:

  <system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules runAllManagedModulesForAllRequests="true">
  <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
  <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
  <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
</modules>
<handlers>
  <add name="Elmah" path="elmah.axd" verb="POST,GET,HEAD" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
</handlers>
<security>
  <requestFiltering>
    <requestLimits maxAllowedContentLength="104857600"/>
  </requestFiltering>
</security>

*ignore the elmah stuff.

it's still not allowing file sizes larger than 50MB and this should allow up to 100MB no?

any ideas?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about file-upload