From a7ee8a5beebf9133086f5ef0811ea83f9afb3fcc Mon Sep 17 00:00:00 2001 From: Songtao Date: Sun, 4 Apr 2021 01:40:48 +0800 Subject: [PATCH] delete $name policy --- pkg/filesystem/driver/s3/handler.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/filesystem/driver/s3/handler.go b/pkg/filesystem/driver/s3/handler.go index b338d8fc..9a37a92e 100644 --- a/pkg/filesystem/driver/s3/handler.go +++ b/pkg/filesystem/driver/s3/handler.go @@ -344,7 +344,6 @@ func (handler Driver) Token(ctx context.Context, TTL int64, key string) (seriali map[string]string{"bucket": handler.Policy.BucketName}, []string{"starts-with", "$key", savePath}, []string{"starts-with", "$success_action_redirect", apiURL.String()}, - []string{"starts-with", "$name", ""}, []string{"starts-with", "$Content-Type", ""}, map[string]string{"x-amz-algorithm": "AWS4-HMAC-SHA256"}, },