aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2024-03-04 20:22:45 +0100
committerLouis <louis@chmn.me>2024-03-12 17:57:30 +0100
commit0bc890866634711db4e26c704b626ac6ac2ce074 (patch)
tree2210170e1f8051922de47c24d6d58a1c6ab8a7a2
parent7d58ae3ac844663f0ff97d91df21c4fcd1b20d7a (diff)
downloadnextcloud-server-0bc890866634711db4e26c704b626ac6ac2ce074.tar.gz
nextcloud-server-0bc890866634711db4e26c704b626ac6ac2ce074.zip
fix: Use proper path when trying to check if a file needs to get copied
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r--apps/dav/lib/Upload/ChunkingV2Plugin.php2
1 files changed, 1 insertions, 1 deletions
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) {