Implement uploadMedia on MediaService.