Skip to content

Commit 25a87ff

Browse files
committed
Fix dotnet chunked upload
1 parent ca483a7 commit 25a87ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/dotnet/src/Appwrite/Client.cs.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ namespace {{ spec.title | caseUcfirst }}
354354
parameters[paramName] = content;
355355

356356
headers["Content-Range"] =
357-
$"bytes {offset}-{Math.Min(offset + ChunkSize - 1, size)}/{size}";
357+
$"bytes {offset}-{Math.Min(offset + ChunkSize - 1, size - 1)}/{size}";
358358

359359
result = await Call<Dictionary<string, object?>>(
360360
method: "POST",

0 commit comments

Comments
 (0)