=== modified file 'modules/file/file.js'
--- modules/file/file.js	2010-09-28 02:31:52 +0000
+++ modules/file/file.js	2010-10-24 00:47:09 +0000
@@ -16,7 +16,9 @@
  */
 Drupal.behaviors.fileValidateAutoAttach = {
   attach: function (context) {
-    $('div.form-managed-file input.form-file[accept]', context).bind('change', Drupal.file.validateExtension);
+    $('div.form-managed-file input.form-file[accept]', context).each(function () {
+      $(this).data('accept', this.accept);
+    }).removeAttr('accept').bind('change', Drupal.file.validateExtension);
   },
   detach: function (context) {
     $('div.form-managed-file input.form-file[accept]', context).unbind('change', Drupal.file.validateExtension);
@@ -61,7 +63,7 @@ Drupal.file = Drupal.file || {
     $('.file-upload-js-error').remove();
 
     // Add client side validation for the input[type=file] accept attribute.
-    var accept = this.accept.replace(/,\s*/g, '|');
+    var accept = $(this).data('accept').replace(/,\s*/g, '|');
     if (accept.length > 1 && this.value.length > 0) {
       var acceptableMatch = new RegExp('\\.(' + accept + ')$', 'gi');
       if (!acceptableMatch.test(this.value)) {
@@ -75,6 +77,7 @@ Drupal.file = Drupal.file || {
       }
     }
   },
+
   /**
    * Prevent file uploads when using buttons not intended to upload.
    */

