From 9f719d00a49039d2a1bbd8003817392b75418c5c Mon Sep 17 00:00:00 2001 From: Lukas Schaefer Date: Thu, 9 Jul 2026 17:17:18 -0400 Subject: [PATCH] fix: Output shape validation will delete keys when there is a list of files Signed-off-by: Lukas Schaefer --- lib/private/TaskProcessing/Manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/TaskProcessing/Manager.php b/lib/private/TaskProcessing/Manager.php index 608856fd27017..787d65d804ad0 100644 --- a/lib/private/TaskProcessing/Manager.php +++ b/lib/private/TaskProcessing/Manager.php @@ -1607,7 +1607,7 @@ public function encapsulateOutputFileData(array $output, ...$specs): array { $file = $folder->newFile(time() . '-' . rand(1, 100000), $output[$key]); $newOutput[$key] = $file->getId(); // polymorphic call to SimpleFile } else { - $newOutput = []; + $newOutput[$key] = []; foreach ($output[$key] as $item) { /** @var SimpleFile $file */ $file = $folder->newFile(time() . '-' . rand(1, 100000), $item);