Implemented async upload.