Hm. Downloader still busted
This commit is contained in:
parent
57cf88deb9
commit
935d86ce55
|
|
@ -11,10 +11,13 @@ class EmailAttachmentsController extends AppController {
|
|||
header('Content-type: ' . $file['EmailAttachment']['type']);
|
||||
header('Content-length: ' . $file['EmailAttachment']['size']);
|
||||
header('Content-Disposition: attachment; filename='.basename($file['EmailAttachment']['name']));
|
||||
header('Content-Transfer-Encoding: binary');
|
||||
header('Expires: 0');
|
||||
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
|
||||
ob_clean();
|
||||
flush();
|
||||
flush();
|
||||
readfile($file['EmailAttachment']['filename']);
|
||||
// echo $file['EmailAttachment']['filename']
|
||||
// echo $file['EmailAttachment']['filename']
|
||||
exit();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue