@@ -19,7 +19,7 @@ public Task<ContentResponse> StartUploadAsync(Guid accountId, byte[] content, lo
1919 {
2020 var request = http . Post ( $ "v1/{ accountId } /contents")
2121 . WithBytes ( content )
22- . ContentRange ( from , to , contentLength )
22+ . ContentRange ( from , to )
2323 . Accept ( ContentTypes . Json ) ;
2424 return SendRequestAsync < ContentResponse > ( request , timeout ) ;
2525 }
@@ -28,7 +28,7 @@ public Task<ContentResponse> StartUploadAsync(Guid accountId, Stream stream, lon
2828 {
2929 var request = http . Post ( $ "v1/{ accountId } /contents")
3030 . WithPayload ( new StreamPayload ( stream ) )
31- . ContentRange ( from , to , contentLength )
31+ . ContentRange ( from , to )
3232 . Accept ( ContentTypes . Json ) ;
3333 return SendRequestAsync < ContentResponse > ( request , timeout ) ;
3434 }
@@ -37,7 +37,7 @@ public Task<UploadChunkResponse> UploadChunkAsync(Guid accountId, Guid contentId
3737 {
3838 var request = http . Put ( $ "v1/{ accountId } /contents/{ contentId } ")
3939 . WithBytes ( contentChunk )
40- . ContentRange ( from , to , contentLength )
40+ . ContentRange ( from , to )
4141 . Accept ( ContentTypes . Json ) ;
4242 return SendRequestAsync < UploadChunkResponse > ( request , timeout ) ;
4343 }
0 commit comments