莉莉pig 发表于 2011-9-28 22:05:39

这里是知识的宝库,储藏这无穷无尽的精神食粮

心静自然凉。 发表于 2012-6-15 01:22:45

我的也没有解决·等待解决!

yinhao159 发表于 2014-12-3 12:00:10

看看行不行

yinhao159 发表于 2014-12-3 12:01:55

试试行不行

yinhao159 发表于 2014-12-3 19:45:04

在实际应用中往往会出现上传文件太大,无法上传的情况,那是因为IIS对上传文件大小有限制,IIS7 默认文件上传大小是30M,要突破这个限制需要做一下修改:       1.打开 %windir%\system32\inetsrv\config\applicationhost.config 找到: <requestFiltering>节点       这个节点默认没有 <requestLimits maxAllowedContentLength="上传大小的值(单位:byte)" /> 元素,IIS 7和IIS 7.5上测试过 最大值只能是<requestLimits maxAllowedContentLength="4294967295" /> <4GB,       为这个节点新增如下事例元素:<requestLimits maxAllowedContentLength="2147483647" /> ,上传的大小将改为2G       注意:%windir%\system32\inetsrv\config\applicationhost.config 文件一定不要用其他机器的文件替换,否则IIS将无法启动 此文件记录了,当前IIS中所有Site , App pool的信息,还有一些与机器相关的配置。       2.修改web.config       <system.web> <httpRuntime executionTimeout="36000" maxRequestLength="2097151"/> <!--maxRequestLength:上传的大小,单位K ,executionTimeout:设置超时时间,单位:秒。(默认是90秒) --> </system.web>       3.web.config下如果有如下节点(此节点是为IIS 7设计的) ,则修改:       <requestLimits maxAllowedContentLength="2147483647" /> 单位与applicationhost.config中的<requestLimits maxAllowedContentLength="2147483647" />一致,它的最大值也只能为4294967295<system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="2147483647" /> </requestFiltering> </security> </system.webServer>

yinhao159 发表于 2014-12-4 02:14:26

在实际应用中往往会出现上传文件太大,无法上传的情况,那是因为IIS对上传文件大小有限制,IIS7 默认文件上传大小是30M,要突破这个限制需要做一下修改:       1.打开 %windir%\system32\inetsrv\config\applicationhost.config 找到: <requestFiltering>节点       这个节点默认没有 <requestLimits maxAllowedContentLength="上传大小的值(单位:byte)" /> 元素,IIS 7和IIS 7.5上测试过 最大值只能是<requestLimits maxAllowedContentLength="4294967295" /> <4GB,       为这个节点新增如下事例元素:<requestLimits maxAllowedContentLength="2147483647" /> ,上传的大小将改为2G       注意:%windir%\system32\inetsrv\config\applicationhost.config 文件一定不要用其他机器的文件替换,否则IIS将无法启动 此文件记录了,当前IIS中所有Site , App pool的信息,还有一些与机器相关的配置。       2.修改web.config       <system.web> <httpRuntime executionTimeout="36000" maxRequestLength="2097151"/> <!--maxRequestLength:上传的大小,单位K ,executionTimeout:设置超时时间,单位:秒。(默认是90秒) --> </system.web>       3.web.config下如果有如下节点(此节点是为IIS 7设计的) ,则修改:       <requestLimits maxAllowedContentLength="2147483647" /> 单位与applicationhost.config中的<requestLimits maxAllowedContentLength="2147483647" />一致,它的最大值也只能为4294967295<system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="2147483647" /> </requestFiltering> </security> </system.webServer>

少帅 发表于 2016-4-22 16:39:02

2009年发布的,晕死
页: 1 2 3 [4]
查看完整版本: 关于大文件上传后没有的解决办法(分享)