diff --git a/backend/internal/api/handlers/backup_handler.go b/backend/internal/api/handlers/backup_handler.go index 31aa7b51..73f62719 100644 --- a/backend/internal/api/handlers/backup_handler.go +++ b/backend/internal/api/handlers/backup_handler.go @@ -60,6 +60,7 @@ func (h *BackupHandler) Download(c *gin.Context) { return } + c.Header("Content-Disposition", "attachment; filename="+filename) c.File(path) } diff --git a/backend/internal/api/handlers/logs_handler.go b/backend/internal/api/handlers/logs_handler.go index 93806d41..d23dcc5a 100644 --- a/backend/internal/api/handlers/logs_handler.go +++ b/backend/internal/api/handlers/logs_handler.go @@ -74,5 +74,6 @@ func (h *LogsHandler) Download(c *gin.Context) { return } + c.Header("Content-Disposition", "attachment; filename="+filename) c.File(path) }