fix: use file mime type instead of hardcoded application/zip in S3 export

This commit is contained in:
kolaente 2026-03-19 17:01:48 +01:00
parent 0e1f44e57e
commit 4cd63f93a4
1 changed files with 1 additions and 1 deletions

View File

@ -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)