tusd icon indicating copy to clipboard operation
tusd copied to clipboard

Unrouted handler imposes unnecessary requirement on upload path

Open innovate-invent opened this issue 4 years ago • 1 comments

Describe the bug The existence of this function imposes an unnecessary restriction on the URI path and software attempting to use the dependent library.

Expected behavior extractIDFromPath() should be replaced with a callback:

type UnroutedHandler struct {
...
   GetID func(r *http.Request)(string, error)
}

GetID can default to the current functionality

Setup details golang tusd handler library

innovate-invent avatar Jan 02 '20 23:01 innovate-invent

See the corresponding PR for more discussion: https://github.com/tus/tusd/pull/341

Acconut avatar Jan 25 '24 12:01 Acconut