Refining S3 upload.