From c7da3ab77f19c5a0bfad40d34dc8918fcf539b91 Mon Sep 17 00:00:00 2001 From: a1pcm Date: Mon, 23 Feb 2026 03:26:31 -0600 Subject: [PATCH] drime: fix chunk-uploaded files ignoring workspace ID When specifying --drime-workspace-id, a file greater than the limit at which file uploads get chunked would ignore the specified ID and get put into the default workspace instead. Completes the fix described in commit 2360e65 by properly closing the chunkwriter by providing the workspace ID to the Drime API call. --- backend/drime/api/types.go | 1 + backend/drime/drime.go | 1 + 2 files changed, 2 insertions(+) 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{