fix spaces thumbnails

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

No files matched your search

@@ -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
+2 -1
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{