HERE YOU GO. If I understood correctly, you want to get info after attachment was uploaded.
So put this code in functions.php file. And here you have 2 functions - one is fired after image is uploaded and displayed to edit info (or always whenever you edit attachment) and second one is fired when user clicks save on attachment.
With those 2 functions you can make anything what you want to atchieve :)
add_filter("attachment_fields_to_edit", "wpse_54409_image_details_on_edit", null, 2);
add_filter("attachment_fields_to_save", "wpse_54409_image_details_on_save", null , 2);
function wpse_54409_image_details_on_edit($form_fields, $post) {
//we interested only in images so ->
if( substr($post->post_mime_type, 0, 5) == 'image' ){
$meta = get_post_custom($post->ID);
echo 'This attachment ID: '.$post->ID;
echo '<br>';
echo 'This attachment title: '.$post->post_title;
echo '<br>';
echo 'This attachment post name: '.$post->post_name;
echo '<br>';
echo 'Alt. text: '.$meta['_wp_attachment_image_alt'][0];
echo '<br>';
echo 'File name: '.$meta['_wp_attached_file'][0];
}
return $form_fields;
}
function wpse_54409_image_details_on_save($post, $attachment) {
//we interested only in images so ->
if( substr($post->post_mime_type, 0, 5) == 'image' ){
/*
HERE YOU CAN GET ALL INFO UPPON ATTACHMENT IS SAVED
AND DO WITH THAT INFO WHATEVER YOU WANT
EVEN ALTER IT TO MAKE CHANGES TO IT
*/
}
return $post;
}