From 52865bd21f1b8921bec55ed499be41b8a6e78377 Mon Sep 17 00:00:00 2001 From: Jim Schmid Date: Thu, 25 Jul 2013 17:47:33 +0200 Subject: [PATCH] Readded the codeblock for the assembling of chunks if load distribution is false. --- Controller/AbstractChunkedController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Controller/AbstractChunkedController.php b/Controller/AbstractChunkedController.php index c197ec19..d7b03658 100644 --- a/Controller/AbstractChunkedController.php +++ b/Controller/AbstractChunkedController.php @@ -66,6 +66,11 @@ protected function handleChunkedUpload(UploadedFile $file, ResponseInterface $re // if all chunks collected and stored, proceed // with reassembling the parts if ($last) { + if (!$chunkManager->getLoadDistribution()) { + $chunks = $chunkManager->getChunks($uuid); + $assembled = $chunkManager->assembleChunks($chunks, true, true); + } + $path = $assembled->getPath(); // create a temporary uploaded file to meet the interface restrictions