Index: branches/RC/core/units/general/cat_event_handler.php =================================================================== diff -u -r9598 -r9616 --- branches/RC/core/units/general/cat_event_handler.php (.../cat_event_handler.php) (revision 9598) +++ branches/RC/core/units/general/cat_event_handler.php (.../cat_event_handler.php) (revision 9616) @@ -2327,15 +2327,11 @@ return ; } - $filename = $object->GetField($field, 'full_path'); + $file_helper =& $this->Application->recallObject('FileHelper'); + /* @var $file_helper FileHelper */ - $content_type = function_exists('mime_content_type') ? mime_content_type($filename) : 'application/octet-stream'; - - header('Content-type: '.$content_type); - header('Content-Disposition: attachment; filename="'.basename($filename).'"'); - header('Content-Length: '.filesize($filename)); - readfile($filename); - flush(); + $filename = $object->GetField($field, 'full_path'); + $file_helper->DownloadFile($filename); } }