Implements metadata-based upload.