mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +00:00
fix downloading file
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user