mirror of
https://github.com/minio/minio.git
synced 2026-11-13 14:44:19 +00:00
Browser: Shared link has content-disposition header (#11712)
The shared link will be automatically downloadable when the user opens the shared link in a browser.
This commit is contained in:
1 parent
c25e75f0b5
commit
f92b7a5621
1 file changed
+1
@@ -2177,6 +2177,7 @@ func presignedGet(host, bucket, object string, expiry int64, creds auth.Credenti
|
||||
query.Set(xhttp.AmzCredential, credential)
|
||||
query.Set(xhttp.AmzDate, dateStr)
|
||||
query.Set(xhttp.AmzExpires, expiryStr)
|
||||
query.Set(xhttp.ContentDisposition, fmt.Sprintf("attachment; filename=\"%s\"", object))
|
||||
// Set session token if available.
|
||||
if sessionToken != "" {
|
||||
query.Set(xhttp.AmzSecurityToken, sessionToken)
|
||||
|
||||
Reference in new issue
Block a user