
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
- mcp-for-docs not working properly
I'm experiencing issues integrating the MCP server tool with Cursor IDE. The MCP server connection establishes successfully initially but fails after one minute...
- Creating a relationship with nested obje...
{ "data": { "name": "DiDi", "type": "Software Development", "userJobs": [{ "$id": "68cbf1e2003612fb13ca", "j...
- Realtime integration with SSR auth
Hey, I have a nextjs website with SSR auth, works great. I use a session client for user verification and an admin client with API key. Both is used with node-...
