From e4bb986c6c3bad4c30a168fd0d46592dd1e231de Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Thu, 9 Jul 2026 19:17:16 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20servir=20carpeta=20uploads/=20como=20rut?= =?UTF-8?q?a=20est=C3=A1tica?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Los archivos adjuntos de tareas se guardaban en uploads/tareas/{id}/ pero Fiber solo servía la carpeta public/. Se agrega ruta estática /uploads → ./uploads para que los archivos sean accesibles vía HTTP. Co-Authored-By: Claude Sonnet 4.6 --- config/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/config.go b/config/config.go index d59f847..ae24f3b 100755 --- a/config/config.go +++ b/config/config.go @@ -94,6 +94,9 @@ func (cfg *AppConfig) LoadComponents() { func (cfg *AppConfig) LoadStatic() { cfg.Server.Static("/websocket", "./resources/views/websocket.html") + cfg.Server.Static("/uploads", "./uploads", fiber.Static{ + ByteRange: true, + }) cfg.Server.Static("/", filepath.Join(cfg.Server.Path, cfg.Server.PublicPath), fiber.Static{ Compress: true, ByteRange: true,