mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
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:
commit
dc52a2582b
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue