LargeFileUploadTask.upload()
throws a 400 error when file size is smaller than max_chunk_size
#718
Labels
area:uploads
Focused on functional modules of the product
P1
Priority
priority:p1
High priority/Major issue but not blocking or Big percentage of customers affected.Bug SLA <=7days
type:bug
A broken experience
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
While uploading a large file using
LargeFileUploadTask
to a SharePoint drive location, if the overall file size is less than the max_chunk_size defined (e.g uploading a 5 KB file but the chunk size is 10 MB), the asyncLargeFileUploadTask.upload()
method uploads the file but throws below error:Expected behavior
The upload task should complete without any errors OR the error message should be meaningful e.g. File is too small.
How to reproduce
SDK Version
1.1.7
Latest version known to work for scenario above?
No response
Known Workarounds
Changing the max_chunk_size value to (file_size - 1) seems to prevent the error from occurring.
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: