LargeFileUploadTask.upload()
throws a 400 error when file size is smaller than max_chunk_size
#718
Labels
status:waiting-for-triage
An issue that is yet to be reviewed or assigned
type:bug
A broken experience
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: