summaryrefslogtreecommitdiff
path: root/program/steps/mail/attachments.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2009-10-06 06:55:08 +0000
committerthomascube <thomas@roundcube.net>2009-10-06 06:55:08 +0000
commit01ffe039089e08fd6faaf03f4170853defd41fc8 (patch)
treec90fab58963c2cf4cd37581372ada57c263d0eea /program/steps/mail/attachments.inc
parentffeab7fe7e0ccf1d458d6a863600359c38769950 (diff)
Hold attachment info in a js list in order to simplify things + codestyle
Diffstat (limited to 'program/steps/mail/attachments.inc')
-rw-r--r--program/steps/mail/attachments.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/program/steps/mail/attachments.inc b/program/steps/mail/attachments.inc
index 28d6108d4..d97b9c413 100644
--- a/program/steps/mail/attachments.inc
+++ b/program/steps/mail/attachments.inc
@@ -111,7 +111,11 @@ if (is_array($_FILES['_attachments']['tmp_name'])) {
$content .= Q($attachment['name']);
- $OUTPUT->command('add2attachment_list', "rcmfile$id", $content, $uploadid);
+ $OUTPUT->command('add2attachment_list', "rcmfile$id", array(
+ 'html' => $content,
+ 'name' => $attachment['name'],
+ 'mimetype' => $attachment['mimetype'],
+ 'complete' => true), $uploadid);
}
else { // upload failed
$err = $_FILES['_attachments']['error'][$i];