代码改变世界

MOSS 2007 / WSS 3.0 运行在Windows Server 2008上不能上传大于28M的文件【已解决】

2011-06-22 13:43  努力学习的小熊  阅读(1677)  评论(0编辑  收藏  举报

          环境为Windows Server 2008 Enterprise操作系统,SharePoint 2007,IIS 7.0,网站集是Team Site。

          上传一个30多M的文件,无论如何也上传不上去,在CA(管理中心)中已经修改过Maximum Upload Size,默认为50M,已经完全可以满足大小,基于Windows Server 2003和IIS 6.0的环境没有此问题。

          上传测试:

          IE 6.0 上传选择文件后点击OK按钮,页面出现404错误,并且刷新不能回到上传页面。回到文档库查看,文件上传失败。

          

          IE 8.0 同样出现404错误,但是刷新可以回到上传页面。

          

          IE 9.0 同IE 8.0。

          

         

          使用单个文件上传方式,失败,出现404错误页面。

          使用多个文件上传方式,失败,无错误信息页面,直接跳转回文档库AllItems.aspx页面。

          使用资源管理器视图拷贝文件,失败。

          

 

          解决方案:

          参考微软KB944981

          修改WebApplication的web.config,在<configuration>的末尾增加允许最大的内容长度设置。

<system.webServer>
  
<security>
    
<requestFiltering>
      
<requestLimits maxAllowedContentLength="52428800"/>
    
</requestFiltering>
  
</security>
</system.webServer>

          修改后保存,刷新页面重新上传文档,成功。

 

          参考文章:

          Can’t upload large files to WSS v3 on Windows Server 2008?

          原文内容:

If you’re hosting Windows SharePoint Services v3.0 on Windows Server 2008/IIS 7.0 then you’ll eventually find that you can’t upload files around the ~30MB mark. The symptoms are as follows:

Single File Upload via Document Library
Nothing happens, you get a 404 page.

Multiple File Upload via Document Library
It seems to upload the file but then after the page refreshes, the file is nowhere to be found.

Single or Multiple File Upload/Copy/Paste using open with Windows Explorer
The file begins uploading but then towards the end you get the following error:

Could not find this item

This is no longer located in C:\filepath. Verify the item’s location and try again.

You can retry all day long but it won’t work. The solution is here: KB 944981


          相关KB:

          KB925083