Index: imce.module
===================================================================
--- imce.module	(revision 227)
+++ imce.module	(working copy)
@@ -84,7 +84,7 @@
  * Implementation of hook_file_download().
  */
 function imce_file_download($file) {
-  if ($path = file_create_path($file)) {
+  if ($path = file_create_path($file) && file_exists($path)) {
     if ($info = @getimagesize($path)) {
       $type = $info['mime'];
     }
@@ -189,4 +189,4 @@
  */
 function imce_reg_dir($dirname) {
   return $dirname == '.' || (is_string($dirname) && $dirname != '' && !preg_match('@(^\s)|(^/)|(^\./)|(\s$)|(/$)|(/\.$)|(\.\.)|(//)|(\\\\)|(/\./)@', $dirname));
-}
\ No newline at end of file
+}
