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()