Back

Issues when I delete old image and upload new image with same file name

  • 0
  • Web
  • Storage
  • Cloud
IsItBathTime
19 Jul, 2023, 19:07

Is this a caching issue that could resolve in time? I deleted a previously uploaded picture and replaced it with a new picture bearing the same file name. However the old picture still appears on the website and on appwrite cloud dashboard. However when I hit download or enter the image URL in browser the new image shows up. Example left is the image that comes if I press download and right is the picture in the preview and the one that shows in my website

TL;DR
User is reporting an issue with deleting an old image and uploading a new image with the same file name. The old image is still appearing on the website and the Appwrite cloud dashboard. The user is wondering if this is a caching issue. The user plans to assign new file IDs and update the profiles documentation. There is also a bug reported server-side. No solution is provided in the thread.
Drake
19 Jul, 2023, 19:11

Yes, files can be cached (server-side OR client-side). As such, i highly recommend creating new files rather than recreating files with the same ID.

IsItBathTime
19 Jul, 2023, 19:12

Thanks I'll do that and find a way to keep it all organised πŸ‘

Drake
19 Jul, 2023, 19:16

but we also have a bug server-side πŸ˜… https://github.com/appwrite/appwrite/issues/5529

IsItBathTime
19 Jul, 2023, 19:22

Haha yes I thought I was being clever by recycling the file ID but will have to make a assign new ones and update the profiles docs 😭

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more