0

I've been getting the following error message recently when uploading a file using the REST API:

Microsoft.SharePoint.Client.InvalidClientQueryException - The request message is too big. The server does not allow messages larger than 262144000 bytes.

I've been using this method to upload files both small and large to SharePoint for a while now and never come across this error before. I've been looking at some articles and it appears this message could appear when uploading a file using CSOM. In this case I am not, I do you use csom to add permissions and perform some other small updates.

This is the code used for the REST call: http://sharepointfieldnotes.blogspot.co.uk/2014/07/uploading-large-documents-into.html (Uploading Large Documents With REST)

  • Can you update your post to include your REST API call? – McGeeky May 24 '16 at 9:50
  • @mcgeeky added a link – Webfort May 24 '16 at 9:55
  • any upload limit change on the Web app level? – Waqas Sarwar MVP May 24 '16 at 21:54
  • @WaqasSarwarMCSE not that I know of, is there a way I can check this? – Webfort May 25 '16 at 8:04
1

Microsoft introduced a new large file upload API to upload files up to 10GB in size. See Using chunked upload/StartUpload with sharepoint REST api for an example.

Perhaps they have implemented a new restriction on the approach you have been using now that the new large file upload API has been rolled out?

Either way, you should find the new large file upload API more reliable so I recommend you switch to using this approach.

  • I've been going through my traces and it looks like they may have put a limit in place now – Webfort May 24 '16 at 13:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.