diff -rupN uploadpath/uploadpath.module uploadpath_new/uploadpath.module
--- uploadpath/uploadpath.module	2008-11-09 10:23:30.000000000 +1100
+++ uploadpath.module	2010-06-02 14:01:54.327010450 +1000
@@ -36,7 +36,7 @@ function uploadpath_nodeapi(&$node, $op,
             $file = (array)$file; // if object then type cast as array
           }
           // Only rewrite the path on new files to be saved
-          if ($file['new'] && !$file['remove']){
+          if (is_array($file) && $file['new'] && !$file['remove']) {
             //get the token path pattern
             $pattern = variable_get('uploadpath_prefix_'.$node->type, false);
             if(!$pattern){ 
