diff options
author | Julius Härtl <jus@bitgrid.net> | 2024-03-04 20:22:45 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-03-08 10:52:45 +0000 |
commit | 93c0335eb12a33e9bd988871da1e6c634789bc85 (patch) | |
tree | f27cceb40a9d83e9ada395b1cf8a60d016f7da16 /apps/dav | |
parent | 355bc5e18de0a470db3c7002fcb8d71a8026fa69 (diff) | |
download | nextcloud-server-93c0335eb12a33e9bd988871da1e6c634789bc85.tar.gz nextcloud-server-93c0335eb12a33e9bd988871da1e6c634789bc85.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>
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/Upload/ChunkingV2Plugin.php | 2 |
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) { |