[BUGFIX] Improve jumpUrl download of large files
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / Controller / TypoScriptFrontendController.php
index 8e3404a..5b9a54c 100644 (file)
@@ -2853,6 +2853,8 @@ class TypoScriptFrontendController {
                                                                header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
                                                                header('Content-Type: ' . $mimeType);
                                                                header('Content-Disposition: attachment; filename="' . basename($absoluteFileName) . '"');
+                                                               header('Content-Length: ' . filesize($absoluteFileName));
+                                                               \TYPO3\CMS\Core\Utility\GeneralUtility::flushOutputBuffers();
                                                                readfile($absoluteFileName);
                                                                die;
                                                        } else {