码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2018-01-31 11:40:49      阅读:200      评论:0      收藏:0      [点我收藏+]

标签:sage   ges   requests   min   using   before   contents   def   date   

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 设置客户端上传文件大小

标签:sage   ges   requests   min   using   before   contents   def   date   

原文地址:https://www.cnblogs.com/jianyus/p/8390673.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!