
I was thinking that if i deleted a file from appwrite storage(the file being a photo), automatically the file preview would no longer be showing the image since it has been deleted from the storage. But as I tried to implement it , the delete function was successful but the photo was sill available on the application. I want to confirm where the issue is coming from .
storage.getFilePreview("BUCKET_ID",fileID) This is the function I used to preview the image, but now I have deleted the file, I am confused as to why I am still seeing the image. Building this project with React. Thank you

It could be that the image is still cached in the browser. Can clear your cache and check again?

Would that work? I don't think I would want to tell a user to clear their cache if they wanted to delete a photo. From my elements tab in the developer tools, it still shows the source of the image from appwrite cloud storage. But I already deleted it.

The cache gets deleted after some time. That's how browsers work

Also, you should remove from UI side the photo, that way the client knows it has been deleted
Recommended threads
- Stuck in "deleting"
my parent element have relationship that doesnt exist and its stuck in "deleting", i cant delete it gives me error: Collection with the requested ID could not b...
- Help with 409 Error on Relationship Setu...
I ran into a 409 document_already_exists issue. with AppWrite so I tried to debug. Here's what I've set up: Collection A has 3 attributes and a two-way 1-to-m...
- Database Double Requesting Error.
I am getting error for creating new document in an collection with new ID.unique() then too getting error of existing document. When button is pressed one docum...
