From 6daf54247eced3a0f8dd89a3b89b3894d540171c 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 426a7e8ee1db4..dbc08e43eb95f 100644 --- a/lib/private/TaskProcessing/Manager.php +++ b/lib/private/TaskProcessing/Manager.php @@ -1386,7 +1386,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);