From 93c0335eb12a33e9bd988871da1e6c634789bc85 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Mon, 4 Mar 2024 20:22:45 +0100 Subject: 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 --- apps/dav/lib/Upload/ChunkingV2Plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/dav') 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) { -- cgit v1.2.3