diff --git a/lib/Service/AttachmentService.php b/lib/Service/AttachmentService.php index 344c60a39a5..a50ec7b67fe 100644 --- a/lib/Service/AttachmentService.php +++ b/lib/Service/AttachmentService.php @@ -251,17 +251,14 @@ public function getAttachmentList(int $documentId, ?string $userId = null, ?Sess 'mimetype' => $node->getMimeType(), 'mtime' => $node->getMTime(), 'isImage' => $isImage, + 'shareToken' => $shareToken, + 'davPath' => '/' . implode('/', array_slice(explode('/', $node->getPath()), 3)), 'fullUrl' => $isImage ? $this->urlGenerator->linkToRouteAbsolute('text.Attachment.getImageFile') . $urlParamsBase . '&imageFileName=' . urlencode($name) . '&preferRawImage=1' : $this->urlGenerator->linkToRouteAbsolute('text.Attachment.getMediaFile') . $urlParamsBase . '&mediaFileName=' . urlencode($name), 'previewUrl' => $isImage ? $this->urlGenerator->linkToRouteAbsolute('text.Attachment.getImageFile') . $urlParamsBase . '&imageFileName=' . urlencode($name) : $this->urlGenerator->linkToRouteAbsolute('text.Attachment.getMediaFilePreview') . $urlParamsBase . '&mediaFileName=' . urlencode($name), - /* - : ($isImage - ? $this->urlGenerator->linkTo('', 'remote.php') . '/dav/files/' . $userId . '/' . implode('/', array_map('rawurlencode', array_slice(explode('/', $node->getPath()), 3))) - : ''), - */ ]; } diff --git a/src/nodes/ImageView.vue b/src/nodes/ImageView.vue index ff9484876d7..24da8be643a 100644 --- a/src/nodes/ImageView.vue +++ b/src/nodes/ImageView.vue @@ -36,7 +36,7 @@