luxurious
TTCTheo's Typesafe Cult
•Created by luxurious on 11/3/2024 in #questions
Deleting pictures on the server side from the client side
I have questions ,I have done the uploadzone and all in uploadthing because I’m creating a marketplace. But is there a way to delete the picture from the client side
When the user deleting the picture themself on the client side, it doesn’t happen on the server side, I mean the upload thing dashboard.
And also, when a user chooses a picture and then upload the picture in the website without submitting the form, I want the images uploaded to be deleted on the server side which is the upload thing dashboard .
<UploadDropzone onClientUploadComplete={(res) => {
setImage(res[0].url)
}}
onUploadError={() => {
alert("SOmething went wrong")
}}
endpoint="bannerImageRoute"
/>
2 replies