OneDrive / onedrive-sdk-csharp

OneDrive SDK for C#! https://dev.onedrive.com
Other
295 stars 145 forks source link

ChunkedUploadProvider with files >2GB and ItemByPath fixes. #232

Open armandpostma opened 7 years ago

armandpostma commented 7 years ago

A bug was fixed in the ChunkedUploadProvider which caused it to miscalculate the chunksizes when the file was larger than Int32.Max bytes.

Both the ItemRequestBuilder.ItemWithPath and the OneDriveClient.ItemWithPath methods incorrectly encoded the Uri when a hashtag character was in the path, resulting in an "API not found" error.

A Unit Test was added for the ItemWithPath situation and additional Unit Tests were added to validate the OneDriveClient.ItemWithPath method is working as expected.