Uploadthing file metadata?

Hi there! I am trying to understand how I can send some additional metadata along with the files when using the Uploadthing upload button component (React)?

The closest thing I've found in the docs is onBeforeUploadBegin for 6.0, which I imagine would allow me to tap into the file objects and I assume add additional key-values? But I tried upgrading and didn't seem to be able to access that callback?

A bit lost, and appreciate any help! Cheers.
Was this page helpful?