diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-05-03 08:18:40 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-05-03 08:18:40 +0000 |
| commit | 102f1ae23d794014014676060b447d7bdb63f57c (patch) | |
| tree | 7cb25c91cb8625a57c2d379a528a087ba4d26808 /roundcubemail/program/steps | |
| parent | 3e51b43f7f6d984ffc63855d007e74908aee414d (diff) | |
- Enable multiselection for attachments uploading in capable browsers (#1485969)
git-svn-id: https://svn.roundcube.net/trunk@4723 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
| -rw-r--r-- | roundcubemail/program/steps/mail/compose.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc index 3f2390491..2357c52d8 100644 --- a/roundcubemail/program/steps/mail/compose.inc +++ b/roundcubemail/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(); } |
