How to change Message size restriction on CSOM file upload (Sharepoint 2013)
When I am uploading a file bigger than 2 MB with CSOM to a Sharepoint 2013 list i get the following error:"The request message is too big. The server does not allow messages larger than 2097152 bytes."
To change the limit to 5 MB you need to open the powershell and:
$ws = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
$ws.ClientRequestServiceSettings.MaxReceivedMessageSize = 5242880
$ws.ClientRequestServiceSettings.MaxParseMessageSize = 5242880
$ws.Update()
Like all good recipes finish with a iisreset :)
Source: http://social.technet.microsoft.com/Forums/en-US/e7bc48bc-299e-4977-a8bf-e31b99f24d2f/message-size-restriction-on-csom-file-upload?forum=sharepointdevelopment
Hi,
ReplyDeleteAm also getting same issue.But,am new to sharepoint. Could please guide where i need to run the above script to make it work for large files upload.
Thanks in advance