- 需要在config文件设置httpRuntime 和 maxAllowedContentLength
<system.web>
<httpRuntime
targetFramework="4.6.1"
maxRequestLength="1048576000"
appRequestQueueLimit="100"
useFullyQualifiedRedirectUrl="true" executionTimeout="120" />
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1048576000">
</requestLimits>
</requestFiltering>
</security>
</system.webServer>