Total Pageviews

Thursday 14 June 2012

Tips about Uploading 4 GB file on Web Server

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)

1 comment:

  1. This comment has been removed by a blog administrator.

    ReplyDelete