Index: xmlrpc.php
===================================================================
--- xmlrpc.php	(revision 15490)
+++ xmlrpc.php	(working copy)
@@ -2827,9 +2827,28 @@
 
 		// Save the data
 		$id = wp_insert_attachment( $attachment, $upload[ 'file' ], $post_id );
-		wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $upload['file'] ) );
+		$metadata = wp_generate_attachment_metadata( $id, $upload['file'] );
+		wp_update_attachment_metadata( $id, $metadata );
+	
 
-		return apply_filters( 'wp_handle_upload', array( 'file' => $name, 'url' => $upload[ 'url' ], 'type' => $type ), 'upload' );
+		//setup the data to be returned
+		$returneddata = array( 'file' => $name, 
+		                       'url' => $upload[ 'url' ],
+		                       'type' => $type );
+
+		//Get the URLs for each image we generated	
+		if(    isset($metadata['sizes'])
+		    && is_array($metadata['sizes']) ) {
+			foreach( $metadata['sizes'] as $size => $size_data ) {
+				if( isset($size_data['file']) ) {
+					$resized_url  =  str_replace(  $name, 
+					                               $size_data['file'],
+								       $upload[ 'url' ]) ;
+					$returneddata[ $size.'_url' ] = $resized_url;
+				}
+			}
+		}
+		return apply_filters( 'wp_handle_upload', $returneddata );
 	}
 
 	/* MovableType API functions
