今天系统遇到了一个问题,上传4m以上的文件,uploadify就会报错:超过了最大请求长度。

开始我以为是设置的大小,可是后来我看了uploadify的fileSizeLimit=1024*10,也就是至少应该有10M的容量、

所以我就跟踪了程序,发现是uploadify内部的,一个返回值,就已经开始报错了,于是就上网搜索,发现了这个帖子:http://blog.csdn.net/jingjing_amy/article/details/6320708

错误原因:asp.net默认最大上传文件大小为4M,运行超时时间为90S。

解决方案:

 

1. 修改web.config文件可以改变这个默认值       
      
  <configuration>       
        <system.web>       
                    <httpRuntime maxRequestLength="1048576" executionTimeout="3600" />
        </system.web>       
  <configuration>   

相关文章:

  • 2022-01-20
  • 2022-12-23
  • 2022-02-27
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
  • 2021-10-08
猜你喜欢
  • 2022-02-17
  • 2021-10-01
  • 2021-11-25
  • 2021-05-25
  • 2021-12-29
相关资源
相似解决方案