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 设置客户端上传文件大小的主要内容,如果未能解决你的问题,请参考以下文章

如何使用 CSOM 从/向 SharePoint 2013 下载/上传文件?

SharePoint 文件大小限制

C#客户端WinForm怎么自动(不许要用户选择文件)上传日志到Web服务器

Sharepoint Online阻止上传文件-又一个新选择

Sharepoint 2010 客户端对象模型 - 上传文档(409 冲突)

teams上传文件只读