From a1467e197fb18e704e7b69f9a00a1188abaf1b6b Mon Sep 17 00:00:00 2001 From: alec Date: Mon, 26 May 2008 11:46:25 +0000 Subject: -display error on any upload error (eg. on post_max_size overlimit) git-svn-id: https://svn.roundcube.net/trunk@1427 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/steps/mail/upload.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'roundcubemail/program') diff --git a/roundcubemail/program/steps/mail/upload.inc b/roundcubemail/program/steps/mail/upload.inc index 82f348140..aed0a79f8 100644 --- a/roundcubemail/program/steps/mail/upload.inc +++ b/roundcubemail/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); -- cgit v1.2.3