Index: modules/upload.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/upload.module,v
retrieving revision 1.80
diff -u -r1.80 upload.module
--- modules/upload.module	13 Mar 2006 22:23:09 -0000	1.80
+++ modules/upload.module	17 Mar 2006 19:00:11 -0000
@@ -249,6 +249,9 @@
   if (is_array($node->files)) {
     // Update existing files with form data.
     foreach($node->files as $fid => $file) {
+      // Cast file as an object... It won't work if you cast in the assign in _upload_prepare
+      // it becomes and array by the time we get here anyway.
+      $file = (object)$file;
 
       // Validate new uploads.
       if (strpos($fid, 'upload') !== false && !$file->remove) {
