diff --git a/modules/upload/upload.module b/modules/upload/upload.module
index e71099b27907d25f7182b40c844cd1eca709e1de..defea103723035a8e0012e97e0b54c17e8966e8f 100644
--- a/modules/upload/upload.module
+++ b/modules/upload/upload.module
@@ -449,7 +449,7 @@ function theme_upload_attachments($elements) {
     }
   }
   if (count($rows)) {
-    return theme('table', $header, $rows, array('id' => 'attachments'));
+    return theme('table', $header, $rows, array('class' => 'attachments'));
   }
 }