fix spaces thumbnails

When requesting files using spaces references, the path needs to be relative
This commit is contained in:
David Christofas
2022-02-24 18:16:03 +01:00
parent 7973c743f9
commit 571ee558c2
2 changed files with 3 additions and 1 deletions

View File

@@ -3,3 +3,4 @@ Enhancement: Thumbnails in spaces
Added support for thumbnails in spaces.
https://github.com/owncloud/ocis/pull/3219
https://github.com/owncloud/ocis/pull/3235

View File

@@ -52,7 +52,8 @@ func (s CS3) Get(ctx context.Context, path string) (io.ReadCloser, error) {
StorageId: spaceID,
OpaqueId: spaceID,
},
Path: path,
// Spaces requests need relative paths.
Path: "." + path,
}
} else {
ref = &provider.Reference{