diff options
author | Robin Appelman <robin@icewind.nl> | 2024-03-08 11:51:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 11:51:39 +0100 |
commit | 94ebc97326df4425fd5dede33b3b41349049b8bc (patch) | |
tree | f36c0caa7dda0e4d9d617bff4d95b649e74f1a8b | |
parent | b6691b35c7be946f038a6c8c6d221e64c60788f4 (diff) | |
parent | ca453f5b8485c2099a8916e34047ec66d2d14a22 (diff) | |
download | nextcloud-server-94ebc97326df4425fd5dede33b3b41349049b8bc.tar.gz nextcloud-server-94ebc97326df4425fd5dede33b3b41349049b8bc.zip |
Merge pull request #43983 from nextcloud/fix/s3-upload-shared-lock
Use the proper path to check if a file needs to be copied/moved to the actual target storage
-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) { |