From 76cf7bd5c2357f7950617f6ea4b5e65e8b4e8429 Mon Sep 17 00:00:00 2001 From: Ramires Viana <59319979+ramiresviana@users.noreply.github.com> Date: Mon, 7 Jul 2025 10:57:52 -0300 Subject: [PATCH] fix: trigger event when upload is complete --- http/tus_handlers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/http/tus_handlers.go b/http/tus_handlers.go index 516f43f9..4677b12b 100644 --- a/http/tus_handlers.go +++ b/http/tus_handlers.go @@ -213,6 +213,7 @@ func tusPatchHandler() handleFunc { if newOffset >= uploadLength { unregisterUpload(file.RealPath()) + _ = d.RunHook(func() error { return nil }, "upload", r.URL.Path, "", d.user) } return http.StatusNoContent, nil