From d0eef4853a897648f3935280b9b46ef20cdd11ed Mon Sep 17 00:00:00 2001 From: Bram Date: Fri, 27 Feb 2026 14:34:03 +0100 Subject: [PATCH] add month long uploading --- src/main.go | 5 ++++- templates/index.html | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main.go b/src/main.go index 0db0a66..9ee2e54 100644 --- a/src/main.go +++ b/src/main.go @@ -32,7 +32,10 @@ func main() { router := gin.Default() router.MaxMultipartMemory = 10 << 30 router.LoadHTMLGlob("templates/*") - router.StaticFS("/static", gin.Dir("./static", false)) + var staticPath = gin.Dir("./static", false) + fmt.Printf("Static path: %v\n", staticPath) + + router.StaticFS("/static", staticPath) // Public Routes router.GET("/", func(c *gin.Context) { c.HTML(200, "index.html", nil) }) diff --git a/templates/index.html b/templates/index.html index 38a9ffd..d489768 100644 --- a/templates/index.html +++ b/templates/index.html @@ -126,8 +126,9 @@