文件太大上传失败,解决方案

 

1.Web.config中httpRuntime  maxRequestLength="1048576" 设置的大一点

 

2.修改IIS,如不方便可直接修改Web.config

<system.webServer>
<security>
<requestFiltering>
<requestLimits maxQueryString="10240" maxAllowedContentLength="2147483647" />
</requestFiltering>
</security>

posted @ 2020-07-15 12:31  Xyang  阅读(1068)  评论(0编辑  收藏  举报
hi