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

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

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

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

原文地址:https://www.cnblogs.com/xyangs/p/13304844.html