Index: field_file.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/filefield/field_file.inc,v
retrieving revision 1.15
diff -u -r1.15 field_file.inc
--- field_file.inc	16 Aug 2008 20:08:34 -0000	1.15
+++ field_file.inc	24 Aug 2008 19:28:32 -0000
@@ -135,7 +135,7 @@
   $file->uid = $user->uid;
   $file->filename = basename($filepath);
   $file->filepath = $filepath;
-  $file->filemime = module_exists('mimedetect') ? mimedetect_mime($file) : 'text/plain';
+  $file->filemime = module_exists('mimedetect') ? mimedetect_mime($file) : file_get_mimetype($file->filename);
 
   // Rename potentially executable files, to help prevent exploits.
   if (preg_match('/\.(php|pl|py|cgi|asp|js)$/i', $file->filename) && (substr($file->filename, -4) != '.txt')) {

