Maximum request length exceeded.
If you are using IIS for hosting your application, then the default upload file size is 4MB. To increase it, please use this below section in your web.config -
<configuration>
<system.web>
<httpRuntime maxRequestLength="1048576" />
</system.web>
</configuration>
For IIS7 and above, you also need to add the lines below:
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1073741824" />
</requestFiltering>
</security>
</system.webServer>
Note:
maxRequestLengthis measured in kilobytesmaxAllowedContentLengthis measured in bytes
which is why the values differ in this config example. (Both are equivalent to 1 GB.)
posted on 2021-09-01 13:37 yuanxin1991 阅读(65) 评论(0) 收藏 举报
浙公网安备 33010602011771号