-display error on any upload error (eg. on post_max_size overlimit)

release-0.6
alecpl 17 years ago
parent afe50aed70
commit e34545708f

@ -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 // send html page with JS calls as response
$OUTPUT->command('show_attachment_form', false); $OUTPUT->command('show_attachment_form', false);

Loading…
Cancel
Save