Theo's Typesafe CultTTC
Theo's Typesafe Cult2y ago
6 replies
notash

Onclick() on uploadthing

is there any way that when i upload the image, it wait for a onclick() and then uploads to the uploadthing database? cause it's annoying when you realize that you made worong uplaod
Solution
https://docs.uploadthing.com/api-reference/react#useuploadthing
Here are the docs for it with an example of using a plain old html file input, and you can then implement your own component
Docs for the best file uploader to date
React – uploadthing
Was this page helpful?