Added logic for "Upload" type to store the attachment ID rather than the absolute url. When defining the metabox add a new key in the settings definitions: setting[params][save_attachment_id] = true