diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-05-10 14:18:31 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-05-10 14:18:31 +0000 |
| commit | c39dc03857afef294c68b9c22831fc6edc2c2021 (patch) | |
| tree | 4b5b5c2670dc2ec50a52acf54e55be5557702cf1 /roundcubemail/program | |
| parent | 222775c2b2828a2f649a3bc471c5ba4b7ba656dd (diff) | |
- added enctype for attachments form (#1485056)
git-svn-id: https://svn.roundcube.net/trunk@1371 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/steps/mail/compose.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc index d8ade67ad..676b6b4be 100644 --- a/roundcubemail/program/steps/mail/compose.inc +++ b/roundcubemail/program/steps/mail/compose.inc @@ -710,10 +710,10 @@ function rcmail_compose_attachment_form($attrib) if (!$attrib['id']) $attrib['id'] = 'rcmUploadbox'; - $button = new html_inputfield(array('type' => "button", 'class' => "button")); + $button = new html_inputfield(array('type' => 'button', 'class' => 'button')); $out = html::div($attrib, - $OUTPUT->form_tag(array('name' => "form", 'method' => "post")) . + $OUTPUT->form_tag(array('name' => 'form', 'method' => 'post', 'enctype' => 'multipart/form-data')) . rcmail_compose_attachment_field(array()) . html::br() . $button->show(rcube_label('close'), array('onclick' => "document.getElementById('$attrib[id]').style.visibility='hidden'")) . $button->show(rcube_label('upload'), array('onclick' => JS_OBJECT_NAME . ".command('send-attachment', this.form)")) |
