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
pull/43778/head
Robin Appelman 3 months ago committed by GitHub
commit 94ebc97326
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save