sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Sharepoint Online File upload limit through APIs

Open skreborn11 opened this issue 3 years ago • 2 comments

What type of issue is this?

Question

What SharePoint development model, framework, SDK or API is this about?

SharePoint REST API

Target SharePoint environment

SharePoint Online

What browser(s) / client(s) have you tested

  • [ ] 💥 Internet Explorer
  • [ ] 💥 Microsoft Edge
  • [X] 💥 Google Chrome
  • [ ] 💥 FireFox
  • [ ] 💥 Safari
  • [ ] mobile (iOS/iPadOS)
  • [ ] mobile (Android)
  • [ ] not applicable
  • [ ] other (enter in the "Additional environment details" area below)

Additional environment details

  • browser version
  • SPFx version
  • Node.js version
  • etc

Issue description

We are using the following configurations to setup sharepoint APIs integrations and use them in our application. https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azureacs

When we try to upload a large file using these APIs into sharepoint, we are getting following message: [title=SharePoint returned a 400 HTTP error, message=SharePoint returned the following error code: -1, Microsoft.SharePoint.Client.InvalidClientQueryException, detail=The request message is too big. The server does not allow messages larger than 262144000 bytes.]

Is there a possibility to increase the upload size limit for this particular process in sharepoint online?

skreborn11 avatar Jul 07 '22 12:07 skreborn11

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Jul 07 '22 12:07 ghost

Have you checked out this page for guidance on uploading large files using the chunked file upload method?

https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/upload-large-files-sample-app-for-sharepoint

bcameron1231 avatar Jul 08 '22 01:07 bcameron1231