fix spaces thumbnails
When requesting files using spaces references, the path needs to be relative
This commit is contained in:
2 files changed
+3
-1
No files matched your search
@@ -3,3 +3,4 @@ Enhancement: Thumbnails in spaces
|
|||||||
Added support for thumbnails in spaces.
|
Added support for thumbnails in spaces.
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/3219
|
https://github.com/owncloud/ocis/pull/3219
|
||||||
|
https://github.com/owncloud/ocis/pull/3235
|
||||||
@@ -52,7 +52,8 @@ func (s CS3) Get(ctx context.Context, path string) (io.ReadCloser, error) {
|
|||||||
StorageId: spaceID,
|
StorageId: spaceID,
|
||||||
OpaqueId: spaceID,
|
OpaqueId: spaceID,
|
||||||
},
|
},
|
||||||
Path: path,
|
// Spaces requests need relative paths.
|
||||||
|
Path: "." + path,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ref = &provider.Reference{
|
ref = &provider.Reference{
|
||||||
|
|||||||
Reference in new issue
Block a user