I noticed a small issue while having to upload big files (with byte length > int.MaxValue (2GB))
Reason being session.NextExpectedRanges sometimes returned 0...(Size of the file)
ChunkedUploadProvider#217
The problem is that the method returns int, while doing operations with long
private int NextChunkSize(long rangeBegin, long rangeEnd)
var sizeBasedOnRange = (int) (rangeEnd - rangeBegin) + 1;
rangeEnd being > 2GB makes rangeEnd - rangeBeing < 0
This makes the loop GetUploadChunkRequests go on infinitely
Hello,
I noticed a small issue while having to upload big files (with byte length > int.MaxValue (2GB)) Reason being
session.NextExpectedRanges
sometimes returned 0...(Size of the file)ChunkedUploadProvider#217 The problem is that the method returns int, while doing operations with long
rangeEnd being > 2GB makes rangeEnd - rangeBeing < 0 This makes the loop GetUploadChunkRequests go on infinitely
What I did is using long, then casting to int
Big thank you on the awesome work you are doing!