tus / tusd

Reference server implementation in Go of tus: the open protocol for resumable file uploads
https://tus.github.io/tusd
MIT License
3.05k stars 475 forks source link

Why Does HookEvent.HTTPRequest Not Have Body? #1006

Closed jimydavis closed 1 year ago

jimydavis commented 1 year ago

Thank you.

Acconut commented 1 year ago

The request body is used by the tus protocol to transfer the upload data in PATCH and sometimes also the POST requests. Any value is usually consumed by tusd on its own. That is why (our) tus clients do not allow modifying the body and why (our) tus servers do not provide access to them.

Additional data can either be added as meta data or additional headers to the request. Meta data will be parsed by tusd. The parsed meta data and request headers are provided to the hooks.

jimydavis commented 1 year ago

Thank you! Closing.