From fdb07f2f8939aa2950049de28ac452f4e0f8e47e Mon Sep 17 00:00:00 2001 From: Harry Date: Tue, 10 Mar 2020 20:44:08 +0530 Subject: [PATCH] onedrive: Added maximum chunk size limit warning in the docs If chunk size is more than 250M (262,144,000 bytes) then API throws the following error: Microsoft.SharePoint.Client.InvalidClientQueryException: The request message is too big. The server does not allow messages larger than 262144000 bytes. --- backend/onedrive/onedrive.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.go index 4afdab76c..93fa73db1 100644 --- a/backend/onedrive/onedrive.go +++ b/backend/onedrive/onedrive.go @@ -226,8 +226,9 @@ func init() { Name: "chunk_size", Help: `Chunk size to upload files with - must be multiple of 320k (327,680 bytes). -Above this size files will be chunked - must be multiple of 320k (327,680 bytes). Note -that the chunks will be buffered into memory.`, +Above this size files will be chunked - must be multiple of 320k (327,680 bytes) and +should not exceed 250M (262,144,000 bytes) else you may encounter \"Microsoft.SharePoint.Client.InvalidClientQueryException: The request message is too big.\" +Note that the chunks will be buffered into memory.`, Default: defaultChunkSize, Advanced: true, }, {