From ca453f5b8485c2099a8916e34047ec66d2d14a22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= <jus@bitgrid.net> Date: Mon, 4 Mar 2024 20:22:45 +0100 Subject: [PATCH] fix: Use proper path when trying to check if a file needs to get copied MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl <jus@bitgrid.net> --- apps/dav/lib/Upload/ChunkingV2Plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/Upload/ChunkingV2Plugin.php b/apps/dav/lib/Upload/ChunkingV2Plugin.php index 29017155d458e..c66ffaa3f7d57 100644 --- a/apps/dav/lib/Upload/ChunkingV2Plugin.php +++ b/apps/dav/lib/Upload/ChunkingV2Plugin.php @@ -344,7 +344,7 @@ private function completeChunkedWrite(string $targetAbsolutePath): void { // If the file was not uploaded to the user storage directly we need to copy/move it try { - $uploadFileAbsolutePath = Filesystem::getRoot() . $uploadFile->getPath(); + $uploadFileAbsolutePath = $uploadFile->getFileInfo()->getPath(); if ($uploadFileAbsolutePath !== $targetAbsolutePath) { $uploadFile = $rootFolder->get($uploadFile->getFileInfo()->getPath()); if ($exists) {