Resolve comments from maintainer
parent
c9f6ccc55c
commit
8c98a5a9b8
|
@ -158,7 +158,6 @@ func tusPatchHandler() handleFunc {
|
|||
w.Header().Set("Upload-Offset", strconv.FormatInt(uploadOffset+bytesWritten, 10))
|
||||
|
||||
if bytesWritten < int64(d.Settings.Tus.ChunkSize) {
|
||||
fmt.Printf("Final chunk detected (size: %d). Running after hook\n", bytesWritten)
|
||||
err = d.RunAfterHook("upload", r.URL.Path, "", d.user)
|
||||
if err != nil {
|
||||
return errToStatus(err), err
|
||||
|
|
|
@ -17,7 +17,7 @@ type Runner struct {
|
|||
*settings.Settings
|
||||
}
|
||||
|
||||
// RunBeforeHooks and RunAfterHooks is used for the chunked upload since it cannot use the standard RunHook
|
||||
// RunBeforeHook and RunAfterHook are triggering on their respective timings
|
||||
func (r *Runner) RunBeforeHook(evt, path, dst string, user *users.User) error {
|
||||
path = user.FullPath(path)
|
||||
dst = user.FullPath(dst)
|
||||
|
|
Loading…
Reference in New Issue