--- drupal-cvs/drupal/modules/upload.module	2005-08-11 19:03:31.000000000 -0400
+++ upload.module	2005-08-11 19:28:44.000000000 -0400
@@ -365,6 +365,7 @@
 function upload_form($node) {
   $header = array(t('Delete'), t('List'), t('Url'), t('Size'));
   $rows = array();
+  $has_attachments = FALSE; 
 
   if (is_array($node->files)) {
     foreach ($node->files as $key => $file) {
@@ -379,13 +380,14 @@
 
   if (count($node->files)) {
     $output = theme('table', $header, $rows);
+    $has_attachments = TRUE;
   }
   if (user_access('upload files')) {
     $output .= form_file(t('Attach new file'), "upload", 40);
     $output .= form_button(t('Attach'), 'fileop');
   }
 
-  return '<div class="attachments">'. form_group_collapsible(t('File attachments'), $output, TRUE, t('Changes made to the attachments are not permanent until you save this post.  The first "listed" file will be included in RSS feeds.')) .'</div>';
+  return '<div class="attachments">'. form_group_collapsible(t('File attachments'), $output, $has_attachments ? FALSE : TRUE, t('Changes made to the attachments are not permanent until you save this post.  The first "listed" file will be included in RSS feeds.')) .'</div>';
 }
 
 function upload_load($node) {
