From 7365240e35b90b2f0709b789ba96af8a322b2a68 Mon Sep 17 00:00:00 2001 From: CronyAkatsuki Date: Sat, 6 Jan 2024 20:39:02 +0100 Subject: [PATCH] Remove redirect for security reasons. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 009e281..8c0f7fb 100644 --- a/main.go +++ b/main.go @@ -211,7 +211,7 @@ func Upload(c echo.Context) error { return c.String(http.StatusOK, fileUrl) } - return c.Redirect(http.StatusMovedPermanently, "/files/"+file.Filename) + return c.HTML(http.StatusOK, "File uploaded at url: " + fileUrl + "") } func Delete(c echo.Context) error {