Skip to content

Commit 4426ddf

Browse files
committed
fix: use chunked transfer instead of binary for really big files
1 parent b7aef98 commit 4426ddf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tusc.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ request "-H 'Content-Type: application/offset+octet-stream' \
237237
-H 'Content-Length: $LEFTOVER' \
238238
-H 'Upload-Checksum: $CHKSUM' \
239239
-H 'Upload-Offset: $OFFSET' \
240-
--data-binary '@$FILEPART' \
240+
-H 'Transfer-Encoding: chunked' \
241+
--upload-file '$FILEPART' \
241242
--request PATCH $TUSURL" &
242243
243244
# show spinner

0 commit comments

Comments
 (0)