Skip to content

Commit

Permalink
Updated signedurl generation
Browse files Browse the repository at this point in the history
  • Loading branch information
VaniHaripriya committed Nov 22, 2024
1 parent 03a51c2 commit 2e5fc93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/apiserver/storage/object_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 2e5fc93

Please sign in to comment.