1
0
mirror of https://github.com/rclone/rclone.git synced 2026-02-27 01:43:15 +00:00

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.
This commit is contained in:
a1pcm
2026-02-23 03:26:31 -06:00
committed by Nick Craig-Wood
parent 879913da41
commit c7da3ab77f
2 changed files with 2 additions and 0 deletions

View File

@@ -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

View File

@@ -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{