* Shows the attached file's type and size
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 16 Apr 2001 21:20:46 +0000 (21:20 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 16 Apr 2001 21:20:46 +0000 (21:20 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1236 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php

index 2f4e7723f53ea278c2d03ff81edfc2a9c34b32c3..379f8b1f9932a0f0b30df0a4421a7201388dd7fd 100644 (file)
          $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);
          echo "</td><td align=left bgcolor=\"$color[0]\">";
         foreach ($attachments as $key => $info) {
             echo "<input type=\"checkbox\" name=\"delete[]\" value=\"$key\">\n";
-           echo $info['remotefilename'] . "<br>\n";
+           echo $info['remotefilename'] . " - " . $info['type'] . " (";
+           echo show_readable_size(filesize($attachment_dir . 
+               $info['localfilename'])) . ")<br>\n";
          }
          
          echo "<input type=\"submit\" name=\"do_delete\" value=\""._("Delete selected attachments")."\">\n";