Saving an upload media meta box field

use these:

$imgurl = isset( $values['upload_image'] ) ? esc_attr( $values['upload_image'][0] ) : '';

<input id="upload_image" type="text" size="36" name="upload_image" value="<?php echo $imgurl; ?>" />

<input id="upload_image_button" type="button" value="Upload Image" />

if( isset( $_POST['upload_image'] ) )
    update_post_meta( $post_id, 'upload_image', wp_kses_data( $_POST['upload_image'] ) );