]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: Use proper path when trying to check if a file needs to get copied 43983/head
authorJulius Härtl <jus@bitgrid.net>
Mon, 4 Mar 2024 19:22:45 +0000 (20:22 +0100)
committerJulius Härtl <jus@bitgrid.net>
Fri, 8 Mar 2024 09:02:45 +0000 (10:02 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/dav/lib/Upload/ChunkingV2Plugin.php

index 29017155d458e5767575c633ee62d4c259933c7d..c66ffaa3f7d570d1d09259e1c4bda7544d64f8f9 100644 (file)
@@ -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) {