diff options
author | alecpl <alec@alec.pl> | 2008-05-10 14:18:31 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-05-10 14:18:31 +0000 |
commit | 885ebb8da2c46ba1c5bfd42bf69159f40f266c68 (patch) | |
tree | 32080638c75a9af07b4ad1464f76b1c8832d3715 /program/steps | |
parent | 2ca388d0d756b57398d129f51ae6fa087e4b045e (diff) |
- added enctype for attachments form (#1485056)
Diffstat (limited to 'program/steps')
-rw-r--r-- | program/steps/mail/compose.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index d8ade67ad..676b6b4be 100644 --- a/program/steps/mail/compose.inc +++ b/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)")) |