From ffefe1e242335e960cc201e94eb70ee804c9f523 Mon Sep 17 00:00:00 2001 From: fidian Date: Mon, 16 Apr 2001 21:20:46 +0000 Subject: [PATCH] * Shows the attached file's type and size git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1236 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/compose.php b/src/compose.php index 2f4e7723..379f8b1f 100644 --- a/src/compose.php +++ b/src/compose.php @@ -204,7 +204,7 @@ $passed_body, $color, $use_signature, $signature, $prefix_sig, $editor_size, $attachments, $subject, $newmail, $use_javascript_addr_book, $send_to_bcc, $reply_id, $mailbox, - $from_htmladdr_search, $location_of_buttons; + $from_htmladdr_search, $location_of_buttons, $attachment_dir; $subject = decodeHeader($subject); $reply_subj = decodeHeader($reply_subj); @@ -320,7 +320,9 @@ echo ""; foreach ($attachments as $key => $info) { echo "\n"; - echo $info['remotefilename'] . "
\n"; + echo $info['remotefilename'] . " - " . $info['type'] . " ("; + echo show_readable_size(filesize($attachment_dir . + $info['localfilename'])) . ")
\n"; } echo "\n"; -- 2.25.1