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
sorry if post sounds confusing but i need help what should i usestorage.FilePreview() is this correct ?
That might throw an error if the file doesn't exist
You might need to call get file to see if the file exists and then default to some placeholder if it doesn't
Recommended threads
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...
- > AppwriteException: The requested servi...
When trying to read or write from my database I get the following error: > AppwriteException: The requested service is disabled. You can enable the service from...
- Courtesy limit reset for non-profit migr...
Hi Team! I'm the architect for a 501(c)(3) non-profit project (Aaria's Blue Elephant) and we just hit our Free plan Database Read limit (currently at 164%). Th...