From ee182f3c6e923d88957dec729ee8e2b14d4b4fd0 Mon Sep 17 00:00:00 2001 From: Karl Cordes Date: Sun, 23 Nov 2025 16:09:25 +1100 Subject: [PATCH] Hopefully fix attachments directory misconfig --- php/app/controllers/email_attachments_controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/app/controllers/email_attachments_controller.php b/php/app/controllers/email_attachments_controller.php index 5bb6b364..9e5a7608 100755 --- a/php/app/controllers/email_attachments_controller.php +++ b/php/app/controllers/email_attachments_controller.php @@ -15,7 +15,7 @@ class EmailAttachmentsController extends AppController { $file = $this->EmailAttachment->findById($id); - $file_path = Configure::read('email_directory'); + $file_path = Configure::read('attachments_directory'); if(file_exists($file_path."/".$file['EmailAttachment']['name'])) { @@ -55,7 +55,7 @@ class EmailAttachmentsController extends AppController { $file = $this->EmailAttachment->find('first', array('conditions'=>array('EmailAttachment.id'=>$id))); //$this->set('attachment', $file); - $file_path = Configure::read('email_directory'); + $file_path = Configure::read('attachments_directory'); $contents = file_get_contents($file_path."/".$file['EmailAttachment']['name']);