fix(ks3): fix content disposition format for download filename (#3040)

pull/3057/head
Darren Yu 4 weeks ago
parent 67c6f937c9
commit 13da95c78f
No known key found for this signature in database
GPG Key ID: 2D69AA5646405984

@ -347,7 +347,7 @@ func (handler *Driver) Source(ctx context.Context, e fs.Entity, args *driver.Get
var contentDescription *string
if args.IsDownload {
encodedFilename := url.PathEscape(args.DisplayName)
contentDescription = aws.String(fmt.Sprintf(`attachment; filename="%s"`, encodedFilename))
contentDescription = aws.String(fmt.Sprintf(`attachment; filename=%s`, encodedFilename))
}
// 确保过期时间不小于 0 ,如果小于则设置为 7 天

Loading…
Cancel
Save