From 0a9d3af3ebb4e337ddac10c5fe4e0a61f54a2042 Mon Sep 17 00:00:00 2001 From: E44 <129310925+programmer-44@users.noreply.github.com> Date: Wed, 10 Jun 2026 22:11:02 +0200 Subject: [PATCH] fix: shows media instead of downloading closes #50 --- display/web/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/display/web/main.go b/display/web/main.go index 6b8b037..4b5fa7a 100644 --- a/display/web/main.go +++ b/display/web/main.go @@ -194,7 +194,7 @@ func downloadFileRoute(ctx echo.Context) error { slog.Info("Serving file for download", "path", fullPath) - return ctx.File(fullPath) + return ctx.Attachment(fullPath, filepath.Base(fullPath)) } func openFileRoute(ctx echo.Context) error {