From e34545708fe518182601be64639e7ba9d2be21d4 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Mon, 26 May 2008 07:46:25 -0400
Subject: [PATCH] -display error on any upload error (eg. on post_max_size overlimit)

---
 program/steps/mail/upload.inc |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/program/steps/mail/upload.inc b/program/steps/mail/upload.inc
index 82f3481..aed0a79 100644
--- a/program/steps/mail/upload.inc
+++ b/program/steps/mail/upload.inc
@@ -78,6 +78,10 @@
       }
     }
   }
+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);

--
Gitblit v1.9.1