From 4cd63f93a48d784dd2566c26a0642ec0c69d3d8f Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 19 Mar 2026 17:01:48 +0100 Subject: [PATCH] fix: use file mime type instead of hardcoded application/zip in S3 export --- pkg/routes/api/v1/user_export.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/routes/api/v1/user_export.go b/pkg/routes/api/v1/user_export.go index ee50fe322..3c07c9ebc 100644 --- a/pkg/routes/api/v1/user_export.go +++ b/pkg/routes/api/v1/user_export.go @@ -152,7 +152,7 @@ func DownloadUserDataExport(c *echo.Context) error { if config.FilesType.GetString() == "s3" { c.Response().Header().Set("Content-Disposition", "attachment; filename=\""+exportFile.Name+"\"") - c.Response().Header().Set("Content-Type", "application/zip") + c.Response().Header().Set("Content-Type", exportFile.Mime) c.Response().Header().Set("Content-Length", strconv.FormatUint(exportFile.Size, 10)) c.Response().Header().Set("Last-Modified", exportFile.Created.UTC().Format(http.TimeFormat)) _, err = io.Copy(c.Response(), exportFile.File)