? filefield-6.x-3.x-javascript_validation-1.patch
? filefield-file-formatter-presets.diff
Index: filefield.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/filefield/filefield.js,v
retrieving revision 1.6
diff -u -p -r1.6 filefield.js
--- filefield.js	24 Jun 2008 20:16:55 -0000	1.6
+++ filefield.js	26 Jul 2008 18:42:57 -0000
@@ -18,7 +18,7 @@ Drupal.behaviors.filefieldValidateAutoAt
         );
         // what do I prepend this to?
         $(this).before('<div class="messages error filefield-js-error">' + error + '</div>');
-        this.files = '';
+        this.value = '';
         return false;
       }
     }
Index: filefield_widget.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/filefield/filefield_widget.inc,v
retrieving revision 1.21
diff -u -p -r1.21 filefield_widget.inc
--- filefield_widget.inc	23 Jul 2008 19:34:10 -0000	1.21
+++ filefield_widget.inc	26 Jul 2008 18:42:57 -0000
@@ -208,6 +208,9 @@ function filefield_widget_process($eleme
       '#type' => 'file',
       '#title' => t('New Upload'),
       '#description' => implode('<br />', $desc),
+      '#attributes' => array(
+        'accept' => str_replace(' ', '|', trim($field['widget']['file_extensions']))
+      )
     );
 
     $element['upload_btn'] = array(
