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...
React – uploadthing
Docs for the best file uploader to date
Jump to solution
4 Replies
notash
notash4mo ago
please someone help me
ayoub
ayoub4mo ago
Just create your own upload button/dropezone component, what you're asking for is totally client side logic
notash
notash4mo ago
like use the uploadthing hook?
Solution
ayoub
ayoub4mo ago
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
React – uploadthing
Docs for the best file uploader to date
Want results from more Discord servers?
Add your server