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