Follow by Email

"Maximum request length Exceeded" error while uploading files in normal & also in umbraco

You may get error that "Maximum request length Exceeded" while uploading the files of bigger size...
By default we can upload file having size less than 4mb .

To change  this .... do this things....

Please put this your web.config file inside the <system.web>
<httpRuntime requestValidationMode="2.0" maxRequestLength="102400" executionTimeout="3600" />
Where maxRequestLength is the length of the file in kb.
 
&
Add this inside  your <system.Webserver>
    <security>

      <requestFiltering>

        <requestLimits maxAllowedContentLength=" 1048576000"/>

      </requestFiltering>

    </security>
Where maxAllowedContentLength is length of the file in the bytes

By setting this you will be allowed to upload files upto 100mb …

If you want to upload files greater than 100mb then just change maxRequestLength
& maxAllowedContentLength

0 comments:

Post a Comment