Called attachment_post().