summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-05-03 08:18:40 +0000
committeralecpl <alec@alec.pl>2011-05-03 08:18:40 +0000
commit7fc056c3ffadefc48bb9f6f91f1ef783c253f5fb (patch)
tree2ec211e5135f67d6bed04d3a66dfea103908d31f /program/steps
parent4d7fbd508aa50df367f9f055d95f22b697dab5f9 (diff)
- Enable multiselection for attachments uploading in capable browsers (#1485969)
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/compose.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index 3f2390491..2357c52d8 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -1148,6 +1148,8 @@ function rcmail_compose_attachment_form($attrib)
$max_postsize = parse_bytes(ini_get('post_max_size'));
if ($max_postsize && $max_postsize < $max_filesize)
$max_filesize = $max_postsize;
+
+ $OUTPUT->set_env('max_filesize', $max_filesize);
$max_filesize = show_bytes($max_filesize);
$button = new html_inputfield(array('type' => 'button'));
@@ -1172,6 +1174,8 @@ function rcmail_compose_attachment_field($attrib)
{
$attrib['type'] = 'file';
$attrib['name'] = '_attachments[]';
+ $attrib['multiple'] = 'multiple';
+
$field = new html_inputfield($attrib);
return $field->show();
}