Skip to content
Snippets Groups Projects
Commit 776aa422 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

Clear and disable output buffering before sendind file content to browser

parent 1c5927a0
Branches
Tags
3 merge requests!529Hotline 6.56,!408Hotline 16358 fix update notice cosmogramme,!404Hotline memory limit on integration file download
......@@ -59,6 +59,7 @@ class Cosmo_RunLogController extends Zend_Controller_Action {
header('Content-length: ' . $run->getFileSize());
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="' . basename($file_path) . '"');
ob_end_clean();
readfile($file_path);
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment