From 7c879eae4364bfddcd817f219be5a7b7beec635f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20R=C3=A9?= Date: Thu, 5 Feb 2026 15:31:18 +0400 Subject: [PATCH] Add content type to presigned URL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Émile Ré --- pkg/filemanager/service.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/filemanager/service.go b/pkg/filemanager/service.go index c09217fd2..5befcedd1 100644 --- a/pkg/filemanager/service.go +++ b/pkg/filemanager/service.go @@ -146,6 +146,7 @@ func (s *Service) GenerateFileUrl( Bucket: aws.String(file.GetBucketName()), Key: aws.String(file.GetObjectKey()), ResponseCacheControl: aws.String("max-age=3600, public"), + ResponseContentType: aws.String(file.GetMimeType()), ResponseContentDisposition: &contentDisposition, }, func(opts *s3.PresignOptions) {