summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-05-26 11:46:25 +0000
committeralecpl <alec@alec.pl>2008-05-26 11:46:25 +0000
commite34545708fe518182601be64639e7ba9d2be21d4 (patch)
tree7369dc210d571d2f7ace8e36840dfd5a2cb010be /program/steps
parentafe50aed70e96fa943d1cec07465a408afc1e703 (diff)
-display error on any upload error (eg. on post_max_size overlimit)
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/upload.inc4
1 files changed, 4 insertions, 0 deletions
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);