? .svn ? translations/.svn Index: imagefield_file.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/imagefield/imagefield_file.inc,v retrieving revision 1.4 diff -u -p -r1.4 imagefield_file.inc --- imagefield_file.inc 27 Aug 2008 14:53:56 -0000 1.4 +++ imagefield_file.inc 11 Dec 2008 00:35:10 -0000 @@ -44,7 +44,12 @@ function imagefield_file_delete($file) { function imagefield_file_is_image($file) { $file = (object)$file; //dsm($file); - return in_array($file->filemime, array('image/jpg', 'image/pjpeg', 'image/jpeg', 'image/png', 'image/gif')); + if (module_exists('mimedetect')) { + return in_array(mimedetect_mime($file), array('image/jpg', 'image/pjpeg', 'image/jpeg', 'image/png', 'image/gif')); + } + else { + return in_array($file->filemime, array('image/jpg', 'image/pjpeg', 'image/jpeg', 'image/png', 'image/gif')); + } } // create the path to and admin thumbnail.