SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.25k stars 1.01k forks source link

Sharepoint Online File upload limit through APIs #8280

Open skreborn11 opened 2 years ago

skreborn11 commented 2 years ago

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

Additional environment details

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?

ghost commented 2 years ago

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

bcameron1231 commented 2 years ago

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