We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bc86d5 commit d866b8dCopy full SHA for d866b8d
api/src/Page/Download.php
@@ -256,6 +256,9 @@ function _get_autoproc_attachments()
256
*/
257
function _get_file($id, $file)
258
{
259
+ // Remove all buffers
260
+ while (ob_get_level() > 0) ob_end_clean();
261
+
262
$filesystem = new Filesystem();
263
264
$filename = $file['FILEPATH'] . '/' . $file['FILENAME'];
@@ -276,7 +279,6 @@ function _get_file($id, $file)
276
279
// Read the file in 8KB chunks and send them
277
280
while (!gzeof($fileHandle)) {
278
281
echo gzread($fileHandle, 8192);
- if (ob_get_level()) ob_flush();
282
flush();
283
}
284
gzclose($fileHandle);
0 commit comments