如何超过2GB的文件上传到IIS 7.5 / .NET 4? [英] How to upload files over 2Gb to IIS 7.5 / .Net 4?
本文介绍了如何超过2GB的文件上传到IIS 7.5 / .NET 4?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
据我所知IIS和ASP.NET有2GB的文件限制上传。是否有这个在IIS 7.5和.NET 4中的任何解决方案?
As far as I know IIS and ASP.NET has a limitation of 2Gb files upload. Are there any solutions for this in IIS 7.5 and .Net 4?
推荐答案
看一看这里。
您必须添加到应用程序的web.config以下code:
You have to add to your application's web.config the following code:
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength ="2147482624" /><!--this value in bytes~2GB-->
</requestFiltering>
</security>
<system.webServer>
此外,在web.config中找到的的System.Web 的部分和的的httpRuntime键的和 修改的的maxRequestLength 和 executionTimeout 的中提到的我给你参考这个关键属性。
Also in web.config find the system.web section and the httpRuntime key and modify the maxRequestLength and executionTimeout attributes of this key as mentioned in the reference I gave you.
我希望这对你的作品。
这篇关于如何超过2GB的文件上传到IIS 7.5 / .NET 4?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文