From 2e5fc933a13e1693ddc895ec3b85ad82da00c02a Mon Sep 17 00:00:00 2001 From: VaniHaripriya Date: Fri, 22 Nov 2024 14:08:33 -0600 Subject: [PATCH] Updated signedurl generation --- backend/src/apiserver/storage/object_store.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/apiserver/storage/object_store.go b/backend/src/apiserver/storage/object_store.go index 6d2072322226..25bf5435aca1 100644 --- a/backend/src/apiserver/storage/object_store.go +++ b/backend/src/apiserver/storage/object_store.go @@ -144,6 +144,7 @@ func (m *MinioObjectStore) GetSignedUrl(bucketConfig *objectstore.Config, secret return "", err } reqParams := make(url.Values) + reqParams.Set("response-content-disposition", "attachment; filename=\""+key+"\"") signedUrl, err := s3Client.Presign("GET", bucketConfig.BucketName, key, expirySeconds, reqParams) if err != nil { return "", util.Wrap(err, "Failed to generate signed url")