From 881a0fe8068cc197378967527663500161f2ff20 Mon Sep 17 00:00:00 2001 From: elee Date: Sun, 27 Feb 2022 04:50:59 -0600 Subject: [PATCH] ensure compatibility --- weed/replication/sink/s3sink/s3_write.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/weed/replication/sink/s3sink/s3_write.go b/weed/replication/sink/s3sink/s3_write.go index 07eb65271..7d8932fb0 100644 --- a/weed/replication/sink/s3sink/s3_write.go +++ b/weed/replication/sink/s3sink/s3_write.go @@ -38,7 +38,9 @@ func (s3sink *S3Sink) createMultipartUpload(key string, entry *filer_pb.Entry) ( Bucket: aws.String(s3sink.bucket), Key: aws.String(key), ContentType: aws.String(entry.Attributes.Mime), - ACL: aws.String(s3sink.acl), + } + if s3sink.acl != "" { + input.ACL = aws.String(s3sink.acl) } result, err := s3sink.conn.CreateMultipartUpload(input)