Skip to content

Commit 8fb8149

Browse files
committed
fix: path for workspaces
We need the relative path inside a users home directory to fetch the folder content for the filepicker. $file->getPath() gets the absolute path including username and files. Instead use $path which we already know and append the file name. Signed-off-by: Azul <azul@riseup.net>
1 parent e5e8272 commit 8fb8149

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Controller/WorkspaceController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function folder(string $path = '/'): DataResponse {
124124
'id' => $file->getId(),
125125
'mimetype' => $file->getMimetype(),
126126
'name' => $file->getName(),
127-
'path' => $file->getPath()
127+
'path' => $path . '/' . $file->getName()
128128
],
129129
'folder' => [
130130
'permissions' => $folder->getPermissions()

0 commit comments

Comments
 (0)