--- /home/sp-xps-desktop/Desktop/services/resources/file_resource.inc	2011-11-16 16:17:57.000000000 -0500
+++ /home/sp-xps-desktop/Desktop/services_new/resources/file_resource.inc	2012-06-30 18:44:41.918149231 -0400
@@ -241,6 +241,9 @@
   // get deleted on the next cron run if its status is set to 0.
   $file['timestamp'] = time();
 
+  // Set the file user id.
+  $file['uid'] = $user->uid;
+
   // If we made it this far it's safe to record this file in the database.
   drupal_write_record('files', $file);
 
