? .file.module.swp
? 776956-managed-file-attributes.patch
Index: file.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/file/file.module,v
retrieving revision 1.25
diff -u -p -r1.25 file.module
--- file.module	13 Apr 2010 15:23:03 -0000	1.25
+++ file.module	20 Apr 2010 23:04:01 -0000
@@ -369,6 +369,7 @@ function file_managed_file_process($elem
     '#limit_validation_errors' => array($element['#parents']),
     '#ajax' => $ajax_settings,
     '#weight' => -5,
+    '#attributes' => $element['#attributes'],    
   );
 
   $ajax_settings['progress']['type'] ? $ajax_settings['progress']['type'] == 'bar' : 'throbber';
@@ -383,6 +384,7 @@ function file_managed_file_process($elem
     '#limit_validation_errors' => array($element['#parents']),
     '#ajax' => $ajax_settings,
     '#weight' => -5,
+    '#attributes' => $element['#attributes'],    
   );
 
   // @todo It is not good to call these private functions. This should be
@@ -440,6 +442,7 @@ function file_managed_file_process($elem
     '#access' => empty($fid),
     '#theme_wrappers' => array(),
     '#weight' => -10,
+    '#attributes' => $element['#attributes'],
   );
 
   if ($fid && $element['#file']) {
