Rank 1: Thread
I am building map based application when clicking on the map no image of that place is uploaded by default
User can upload images of the place he/she clicked on the map the the image user uploaded on the map gets uploaded via storage.createFile(bucketid,placeid,selectedImage)
so what i am doing currently to make this idea possible
with the help of bucketid and **place(id) place is the fileid for appwrite ** going to that location using storage.getFilePreview(bucketid,placeid) and getting the image in response.href
but the response.href is a link for which image wasn't uploaded first
response.href works only after user uploads image of that place till then before the image has not got uploaded how do I check whether the image is uploaded or not to set the state of my variable in reactjs