--- upload_preview.module.original	2007-06-17 16:04:29.000000000 +0200
+++ upload_preview.module	2007-07-30 10:49:01.000000000 +0200
@@ -101,7 +101,7 @@ function _upload_preview_node_form(&$fil
  */
 function upload_preview_upload_preview($file) {
   // Only check for images
-  if (strpos($file->filemime, 'image/') === 0) {
+  if (strpos($file->filemime, 'image/') === 0  && ( substr($file->filepath, 0 , 7) != variable_get('image_default_path', 'images') . "/"  ) ) {
     // Create the preview image file path based on the actual filename or the
     // preliminary filename (in the temp directory).
     $path = file_create_path(variable_get('upload_preview_path', 'preview')) .'/';
