fix downloading file

This commit is contained in:
2025-05-15 10:47:18 +08:00
parent 4b986ffd86
commit d6fea884cf
2 changed files with 11 additions and 3 deletions

View File

@@ -190,7 +190,8 @@ func deleteFile(c fiber.Ctx) error {
}
func downloadFile(c fiber.Ctx) error {
s, filename, err := service.DownloadFile(c.Params("id"))
ip := c.IP()
s, filename, err := service.DownloadFile(ip, c.Params("id"))
if err != nil {
return err
}