You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I found a small issue with the tus plugin. We're using uppy and tus for file uploads and came across a auth token issue raised internally. I found that onBeforeRequest will solve our issue, by adding the latest auth token in this handler and not using the headers options which aren't synced with ongoing uploads, on the condition it supports promises.
I think it would be a good addition to also have promises enabled on this endpoint. Currently, I'm subclassing the plugin and replacing the bits I need.
Let me know if I missed something. I might be able to help with a PR
The text was updated successfully, but these errors were encountered:
Hello, I found a small issue with the tus plugin. We're using uppy and tus for file uploads and came across a auth token issue raised internally. I found that
onBeforeRequest
will solve our issue, by adding the latest auth token in this handler and not using the headers options which aren't synced with ongoing uploads, on the condition it supports promises.Our used versions are:
There's a slight mismatch in the
@uppy/tus
plugin, at theonBeforeRequest
optional function.https://github.com/tus/tus-js-client/blob/master/docs/api.md#onbeforerequest
Tus supports promises, but
@uppy/tus
plugin wraps the optional function and calls it without handling the case when it's a promise.https://github.com/transloadit/uppy/blob/main/packages/%40uppy/tus/src/index.js#L211
I think it would be a good addition to also have promises enabled on this endpoint. Currently, I'm subclassing the plugin and replacing the bits I need.
Let me know if I missed something. I might be able to help with a PR
The text was updated successfully, but these errors were encountered: