【发布时间】:2017-05-12 09:57:38
【问题描述】:
我正在尝试上传大小为 1.10 gb 的 csv 文件,我希望允许用户上传最大为 10 gb 的文件。
Web.config 设置:
<system.web>
<authentication mode="None" />
<compilation debug="true" targetFramework="4.5" />
<httpRuntime maxRequestLength="10240000" targetFramework="4.5" /> <!-- this will file upload up to 10 gb-->
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="10240000" /><!-- iis setting to handle file upload up to 10 gb-->
</requestFiltering>
</security>
<modules>
<remove name="FormsAuthentication" />
</modules>
</system.webServer>
以上设置基于this reference。
我正在使用ng-File Upload 将文件上传到服务器。
【问题讨论】:
标签: c# asp.net angularjs asp.net-mvc file-upload