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

drime: fix chunk-uploaded files ignoring workspace ID

a1pcmc7da3ab77f19
diff --git a/backend/drime/api/types.go b/backend/drime/api/types.go
index cb335b2b9..427e7eb70 100644
--- a/backend/drime/api/types.go
+++ b/backend/drime/api/types.go
@@ -224,6 +224,7 @@ type MultiPartEntriesRequest struct {
ClientExtension string `json:"clientExtension"`
ParentID json.Number `json:"parent_id"`
RelativePath string `json:"relativePath"`
+ WorkspaceID string `json:"workspaceId,omitempty"`
}
// MultiPartEntriesResponse is the result of POST /s3/entries
diff --git a/backend/drime/drime.go b/backend/drime/drime.go
index 08ed68f50..a8bbfb540 100644
--- a/backend/drime/drime.go
+++ b/backend/drime/drime.go
@@ -1314,6 +1314,7 @@ func (s *drimeChunkWriter) Close(ctx context.Context) error {
ClientExtension: s.extension,
ParentID: s.parentID,
RelativePath: s.relativePath,
+ WorkspaceID: s.f.opt.WorkspaceID,
}
entriesOpts := rest.Opts{