--- pictures_import.module	2007-08-15 12:01:10.124870400 +0200
+++ pictures_import.module.new	2007-08-08 20:54:26.924033600 +0200
@@ -378,15 +378,12 @@ function _pictures_import_process(&$form
 }
 
 function _pictures_save_upload($field_name) {
-  $file = file_check_upload($field_name);
+  $file = file_save_upload($field_name);
   if ($file) {
-    $file = file_save_upload($field_name, $file->filepath . $file->filename );
-    if ($file) {
-      if ($file->filesize > variable_get('pictures_max_upload_size', 1000) * 1024) {
-        form_set_error($field_name, t('The picture you uploaded was too big. You are only allowed upload files less than %max_size but your file was %file_size.', array('%max_size' => format_size(variable_get('pictures_max_upload_size', 800) * 1024), '%file_size' => format_size($file->filesize))));
-        file_delete($file->filepath);
-        return;
-      }
+    if ($file->filesize > variable_get('pictures_max_upload_size', 1000) * 1024) {
+      form_set_error($field_name, t('The picture you uploaded was too big. You are only allowed upload files less than %max_size but your file was %file_size.', array('%max_size' => format_size(variable_get('pictures_max_upload_size', 800) * 1024), '%file_size' => format_size($file->filesize))));
+      file_delete($file->filepath);
+      return;
     }
     file_move($file, _pictures_temp() . '/' . $file->filename);
   }
