Skip to content

Commit

Permalink
Merge pull request #44085 from nextcloud/backport/43983/stable28
Browse files Browse the repository at this point in the history
[stable28] Use the proper path to check if a file needs to be copied/moved to the actual target storage
artonge authored Mar 12, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 7d58ae3 + 0bc8908 commit 9d8e55d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dav/lib/Upload/ChunkingV2Plugin.php
Original file line number Diff line number Diff line change
@@ -344,7 +344,7 @@ private function completeChunkedWrite(string $targetAbsolutePath): void {

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

0 comments on commit 9d8e55d

Please sign in to comment.