Use file ref for s3 upload.