Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Message size restriction on CSOM file upload

$
0
0

Hi,

I am using csom to upload files to a sharepoint site.

I am receiving this error message: "The request message is too big. The server does not allow messages larger than 2097152 bytes."

I have tried running the following powershell script on the sharepoint server, which has been suggested on other posts but i am still receiving the same error, it works fine for smaller files.

get-PSSnapin -Registered
Add-PSSnapin Microsoft.SharePoint.Powershell
$ws = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
$ws.ClientRequestServiceSettings.MaxReceivedMessageSize = 10485760
$ws.Update()


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>