Disable debug to see if it fixes email attachments

This commit is contained in:
Karl Cordes 2019-07-04 16:48:56 +10:00
parent 893959224f
commit e552e6353a
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ error_reporting(E_ALL & ~E_STRICT & ~E_DEPRECATED);
* In production mode, flash messages redirect after a time interval.
* In development mode, you need to click the flash message to continue.
*/
Configure::write('debug', 1);
Configure::write('debug', 0);
Configure::write('version', '1.0.1');

View file

@ -26,7 +26,7 @@ class EmailAttachmentsController extends AppController {
}
header('Content-type: ' . $file['EmailAttachment']['type']);
header('Content-length: ' . filesize($file['EmailAttachment']['name']));
header('Content-length: ' . $file['EmailAttachment']['size'];
header('Content-Disposition: attachment; filename='.$filename);
readfile($file_path."/".$file['EmailAttachment']['name']);