iXora Custom Software Development Blog

Read | Practice | Advance

Tips about Uploading 4 GB file on Web Server

Posted by on in Blog
  • Font size: Larger Smaller
  • Hits: 751
  • 0 Comments
  • Print

Normally We can't upload files of  size > 4 MB.
If we have to upload file of size maximum 4 GB then the web.config file must be contained the following codes

 <configuration>
  </system.web>
<httpRuntime maxRequestLength="4124672" requestValidationMode="2.0" executionTimeout="36000" />
  </system.web>
  <system.webServer>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="4223664128"></requestLimits>
      </requestFiltering>
    </security>
  </system.webServer>
</configuration>

 Notes:

 maxRequestLength  in httpRuntime is KB (Kilo Bytes)

 BUT

 maxAllowedContentLength  in  requestLimits is B (Bytes)

Reference: http://hrn2k1.blogspot.com/2012/06/tips-about-uploading-4-gb-file-on-web.html

Rate this blog entry:
0

Comments

  • No comments made yet. Be the first to submit a comment

Leave your comment

Guest
Guest Tuesday, 25 September 2018