SharePoint 设置客户端上传文件大小

Posted 天下第一间

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SharePoint 设置客户端上传文件大小相关的知识,希望对你有一定的参考价值。

in sharepoint 2013, 2016 , there is a limitatoin on the size of the uploading files , default size for uploading documents through CSOM is 2 MB, but you can overcome this limitation by using the following PS script to set a higher limit


$ws = [Microsoft.SharePoint.Administration.SPWebService]::ContentService 
$ws.ClientRequestServiceSettings.MaxReceivedMessageSize = 10485769 
$ws.ClientRequestServiceSettings.MaxParseMessageSize  = 10485769 
$ws.Update()

Note : stop sharepoint timer service before executing above script

以上是关于SharePoint 设置客户端上传文件大小的主要内容,如果未能解决你的问题,请参考以下文章