Merge pull request #44084 from nextcloud/backport/43983/stable27

[stable27] Use the proper path to check if a file needs to be copied/moved to the actual target storage
This commit is contained in:
Ferdinand Thiessen 2024-03-08 18:44:47 +01:00 committed by GitHub
commit dc52a2582b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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) {