Index: wp-app.php
===================================================================
--- wp-app.php	(revision 10661)
+++ wp-app.php	(working copy)
@@ -26,6 +26,9 @@
 /** Feed Handling API */
 require_once(ABSPATH . WPINC . '/feed.php');
 
+/** Image updates */
+require_once(ABSPATH . '/wp-admin/includes/image.php');
+
 $_SERVER['PATH_INFO'] = preg_replace( '/.*\/wp-app\.php/', '', $_SERVER['REQUEST_URI'] );
 
 /**
@@ -814,9 +817,12 @@
 			$this->auth_required(__('Sorry, you do not have the right to edit this post.'));
 		}
 
+		$upload_dir = wp_upload_dir( );
 		$location = get_post_meta($entry['ID'], '_wp_attached_file', true);
 		$filetype = wp_check_filetype($location);
 
+		$location = "{$upload_dir['basedir']}/{$location}";
+
 		if(!isset($location) || 'attachment' != $entry['post_type'] || empty($filetype['ext']))
 			$this->internal_error(__('Error ocurred while accessing post metadata for file location.'));
 
@@ -843,6 +849,8 @@
 			$this->internal_error(__('Sorry, your entry could not be posted. Something wrong happened.'));
 		}
 
+		wp_update_attachment_metadata( $postID, wp_generate_attachment_metadata( $postID, $location ) );
+
 		log_app('function',"put_file($postID)");
 		$this->ok();
 	}

