fix: servir carpeta uploads/ como ruta estática
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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
dfe8d9e4a9
commit
e4bb986c6c
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user