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,