From ca453f5b8485c2099a8916e34047ec66d2d14a22 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20H=C3=A4rtl?= 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=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- 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 29017155d45..c66ffaa3f7d 100644 --- a/apps/dav/lib/Upload/ChunkingV2Plugin.php +++ b/apps/dav/lib/Upload/ChunkingV2Plugin.php @@ -344,7 +344,7 @@ class ChunkingV2Plugin extends ServerPlugin { // 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) { -- 2.39.5