diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-05-26 11:46:25 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-05-26 11:46:25 +0000 |
| commit | a1467e197fb18e704e7b69f9a00a1188abaf1b6b (patch) | |
| tree | 91b3c2c4362a61bdd3588a1405591cdb4f49d51c /roundcubemail/program/steps/mail/upload.inc | |
| parent | 3e737d1e16b42e950fbc2159066f05a3023a2068 (diff) | |
-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
Diffstat (limited to 'roundcubemail/program/steps/mail/upload.inc')
| -rw-r--r-- | roundcubemail/program/steps/mail/upload.inc | 4 |
1 files changed, 4 insertions, 0 deletions
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); |
