I was getting error:
Maximum request length exceeded.
while uploading an image of 5 mb, google helped me out to solve this problem. We need to write 2 sections in web.config to get rid of this.
<system.web>
<httpRuntime maxRequestLength="1048576" /> <!--[value in kb]-->
</system.web>
FOR IIS & or above
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1073741824" /> <!--[value in byte]-->
</requestFiltering>
</security>
</system.webServer>
Now it is allowing me to upload file upto 1 gb.
No comments:
Post a Comment