These forums are read-only and considered to be an archive. Please use the new Community for future interaction and posts.

Upload Size Limitations

I have noticed that I can only upload files small than 27 MB.  I don't have any upload restrictions set in my code and can't figure how to get around this.  I thought I could upload up to 2 GB.  Any ideas?
Cory 11/14/2008 7:47 AM
I guess you are using IIS7, please include the following setting in your web.config:

  <system.webServer>
    <modules>
      <add name="GleamTech.Web.FileTransfer.UploadHttpModule" type="GleamTech.Web.FileTransfer.UploadHttpModule, GleamTech.Web.FileTransfer" preCondition="managedHandler" />
    </modules>
    
    <validation validateIntegratedModeConfiguration="false" />
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="2140708864" />
      </requestFiltering>
    </security>
  </system.webServer>  

This will increase the limit to 2GB in IIS7 integrated mode.
Cem Alacayir 11/18/2008 2:48 PM
A note to others you run into this same issue. In IIS 7 you can't just add the requestFiltering section into your web.config unless you unlock that section in your applicationHost.config file.
Cory 11/19/2008 7:25 AM