UploadThing: Struggling to authenticate uploads
I am using uploadthing for the first time. I wanted to authenticate a passkey in the middleware after I upload the image.
How do i pass the passkey to the upload request to then be authenticated in the middleware
Something like this
5 Replies
You can pass input to the middleware from the components.
https://docs.uploadthing.com/api-reference/server#input-1
Server – uploadthing
Docs for the best file uploader to date
i have seen this but didnt quite get how i would pass the input from the client component i included
The input prop on the drop zone component
https://docs.uploadthing.com/api-reference/react#configuration-1
React – uploadthing
Docs for the best file uploader to date
GitHub
uploadthing/examples/appdir/src/app/sink/page.tsx at input-docs · p...
File uploads for modern web devs. Contribute to pingdotgg/uploadthing development by creating an account on GitHub.
YOOO THANKS KING