当前位置: 主页 > Office办公 > 其他专区 > SharePoint > SharePoint 如何设置客户端上传文件大小

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

  • 2021-10-25
  • 来源/作者: 菜鸟图库/ 菜鸟图库
  • 301 次浏览

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