Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

box: Fix upload of > 2GB files on 32 bit platforms

Nick Craig-Woodf72eade70721
diff --git a/backend/box/api/types.go b/backend/box/api/types.go
index 22e637fe5..e26f05286 100644
--- a/backend/box/api/types.go
+++ b/backend/box/api/types.go
@@ -172,8 +172,8 @@ type UploadSessionResponse struct {
// Part defines the return from upload part call which are passed to commit upload also
type Part struct {
PartID string `json:"part_id"`
- Offset int `json:"offset"`
- Size int `json:"size"`
+ Offset int64 `json:"offset"`
+ Size int64 `json:"size"`
Sha1 string `json:"sha1"`
}