fix: trigger event when upload is complete

pull/5270/head
Ramires Viana 2025-07-07 10:57:52 -03:00
parent 6337c44525
commit 76cf7bd5c2
1 changed files with 1 additions and 0 deletions

View File

@ -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