At this line https://github.com/transloadit/uppy/blob/main/packages/%40uppy/companion/src/server/Uploader.js#L658, we dont pass down request object to getBucket
util. Thus bucket: (req)
is called with req
undefined.
What if we pass options.metadata
as a second arg to bucket: (req, metadata)
prop of companion config (similar to s3.getKey(req, filename, metadata)
)
Thanks!
P.S.: more details about this issue here dynamic S3 bucket doesnt work with Google Drive provider · Issue #4763 · transloadit/uppy · GitHub