From e34545708fe518182601be64639e7ba9d2be21d4 Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 26 May 2008 11:46:25 +0000 Subject: [PATCH] -display error on any upload error (eg. on post_max_size overlimit) --- program/steps/mail/upload.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/program/steps/mail/upload.inc b/program/steps/mail/upload.inc index 82f348140..aed0a79f8 100644 --- a/program/steps/mail/upload.inc +++ b/program/steps/mail/upload.inc @@ -78,6 +78,10 @@ if (is_array($_FILES['_attachments']['tmp_name'])) } } } +else if ($_SERVER['REQUEST_METHOD'] == 'POST') + { + $OUTPUT->command('display_message', rcube_label('fileuploaderror'), 'error'); + } // send html page with JS calls as response $OUTPUT->command('show_attachment_form', false);