1、进入管理中心->应用程序管理->Web 应用程序常规设置,将最大上载大小改为您最大的文件大小,点击确定。
PS:可指定大文件大小至多为2,047 MB。
2、点击开始->所有程序->管理工具->Internet 信息服务(IIS)管理器,右键网站属性(例如:SharePoint - [端口]),将连接超时120(秒),改为更大的值,例如(文件大小/网速)。
3、对C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\TEMPLATE\LAYOUTS目录下的web.config进行修改,
将现有代码:
Code
<location path="upload.aspx">
<system.web>
<httpRuntime maxRequestLength="2097151" />
</system.web>
</location>
更改为:
Code
<location path="upload.aspx">
<system.web>
<httpRuntime executionTimeout="999999" maxRequestLength="2097151" />
</system.web>
</location>
maxRequestLength="2097151"可以修改为更大
对C:\inetpub\wwwroot\wss\VirtualDirectories\[端口]下web.config进行修改,
现有代码:
Code
<httpRuntime maxRequestLength="51200" />
更改为:
Code
<httpRuntime executionTimeout="999999" maxRequestLength="51200" />
maxRequestLength="51200"可以修改为更大,这是针对于相应端口下网站的大小。
4、如果您使用的是Windows2008+IIS7,对C:\inetpub\wwwroot\wss\VirtualDirectories\[端口]下web.config进行修改
在<configuration>节点下添加以下节点
Code
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="52428800"/>
</requestFiltering>
</security>
</system.webServer>
PS:
(1)、52428800 是文件的字节数。
(2)、默认情况下,IIS7是不允许上传29M以上的文件的(包括29M)。
(3)、如果您觉得每次修改web.config比较不爽,您也可以修改 C:\Windows\System32\inetsrv\config\applicationhost.config,当然这会影响整个服务器的全局配置。
PS:可指定大文件大小至多为2,047 MB。
2、点击开始->所有程序->管理工具->Internet 信息服务(IIS)管理器,右键网站属性(例如:SharePoint - [端口]),将连接超时120(秒),改为更大的值,例如(文件大小/网速)。
3、对C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\TEMPLATE\LAYOUTS目录下的web.config进行修改,
将现有代码:
Code
<location path="upload.aspx">
<system.web>
<httpRuntime maxRequestLength="2097151" />
</system.web>
</location>
更改为:
Code
<location path="upload.aspx">
<system.web>
<httpRuntime executionTimeout="999999" maxRequestLength="2097151" />
</system.web>
</location>
maxRequestLength="2097151"可以修改为更大
对C:\inetpub\wwwroot\wss\VirtualDirectories\[端口]下web.config进行修改,
现有代码:
Code
<httpRuntime maxRequestLength="51200" />
更改为:
Code
<httpRuntime executionTimeout="999999" maxRequestLength="51200" />
maxRequestLength="51200"可以修改为更大,这是针对于相应端口下网站的大小。
4、如果您使用的是Windows2008+IIS7,对C:\inetpub\wwwroot\wss\VirtualDirectories\[端口]下web.config进行修改
在<configuration>节点下添加以下节点
Code
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="52428800"/>
</requestFiltering>
</security>
</system.webServer>
PS:
(1)、52428800 是文件的字节数。
(2)、默认情况下,IIS7是不允许上传29M以上的文件的(包括29M)。
(3)、如果您觉得每次修改web.config比较不爽,您也可以修改 C:\Windows\System32\inetsrv\config\applicationhost.config,当然这会影响整个服务器的全局配置。