Disable debug to see if it fixes email attachments
This commit is contained in:
parent
893959224f
commit
e552e6353a
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
|
|
@ -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']);
|
||||
|
|
|
|||
Loading…
Reference in a new issue