diff --git a/utils/storage/s3.go b/utils/storage/s3.go index 0579b9f11..1e09ad730 100644 --- a/utils/storage/s3.go +++ b/utils/storage/s3.go @@ -139,13 +139,11 @@ func (fs *S3FileStorage) SaveByKey(src io.Reader, key, name, contentType string, } input := &s3.PutObjectInput{ - Bucket: aws.String(fs.bucket), - Key: aws.String(key), - Body: src, - ContentType: aws.String(contentType), - Metadata: map[string]string{ - "Content-Disposition": fmt.Sprintf("attachment; filename*=UTF-8''%s", url.PathEscape(name)), - }, + Bucket: aws.String(fs.bucket), + Key: aws.String(key), + Body: src, + ContentType: aws.String(contentType), + ContentDisposition: aws.String(fmt.Sprintf("attachment; filename*=UTF-8''%s", url.PathEscape(name))), } uploader := manager.NewUploader(fs.client)