enhance file download handling to track real users

This commit is contained in:
2025-09-01 17:51:06 +08:00
parent 44b876ba0e
commit b804741e27
2 changed files with 7 additions and 5 deletions

View File

@@ -205,7 +205,7 @@ func deleteFile(c fiber.Ctx) error {
func downloadFile(c fiber.Ctx) error {
cfToken := c.Query("cf_token")
s, filename, err := service.DownloadFile(c.Params("id"), cfToken)
s, filename, err := service.DownloadFile(c.Params("id"), cfToken, c.Locals("real_user") == true)
if err != nil {
return err
}