Add content type to presigned URL
Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -146,6 +146,7 @@ func (s *Service) GenerateFileUrl(
|
|||||||
Bucket: aws.String(file.GetBucketName()),
|
Bucket: aws.String(file.GetBucketName()),
|
||||||
Key: aws.String(file.GetObjectKey()),
|
Key: aws.String(file.GetObjectKey()),
|
||||||
ResponseCacheControl: aws.String("max-age=3600, public"),
|
ResponseCacheControl: aws.String("max-age=3600, public"),
|
||||||
|
ResponseContentType: aws.String(file.GetMimeType()),
|
||||||
ResponseContentDisposition: &contentDisposition,
|
ResponseContentDisposition: &contentDisposition,
|
||||||
},
|
},
|
||||||
func(opts *s3.PresignOptions) {
|
func(opts *s3.PresignOptions) {
|
||||||
|
|||||||
Reference in New Issue
Block a user