From 8b4c1b911301801adf2c42954dd4696e5f3c5897 Mon Sep 17 00:00:00 2001 From: Idan Novogroder Date: Sun, 25 Feb 2024 18:13:31 +0200 Subject: [PATCH] Fix bug im pultipart upload s3 --- pkg/block/s3/adapter.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/block/s3/adapter.go b/pkg/block/s3/adapter.go index ea9a1be015c..37b4ad64a47 100644 --- a/pkg/block/s3/adapter.go +++ b/pkg/block/s3/adapter.go @@ -666,6 +666,7 @@ func (a *Adapter) CreateMultiPartUpload(ctx context.Context, obj block.ObjectPoi Bucket: aws.String(bucket), Key: aws.String(key), ContentType: aws.String(""), + Expires: aws.Time(time.Now().Add(a.preSignedExpiry)), } if opts.StorageClass != nil { input.StorageClass = types.StorageClass(*opts.StorageClass)