fix: trigger event when upload is complete
parent
6337c44525
commit
76cf7bd5c2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue