Page 1 of 1

Replace images by FTP

Posted: 01 Jan 2025, 02:47
by Dane
Hello,

I would like to replace some of my photos in the galleries with new revised versions. My idea here was that I simply overwrite the image files via FTP, and the entries in the gallery with description etc. remain. I would find that easier than deleting the images in the panel, uploading them again and entering the data. I also assume that the order of the photos in the gallery, which is sorted by date, is not affected by this replacement in the background?

If this would work, what else do I have to set in the panel so that the replaced photos are also displayed on the page? Clean or delete the image cache? Preload?

Re: Replace images by FTP

Posted: 01 Jan 2025, 03:56
by mjau-mjau
The only problem with "replacing" images without renaming them, is cache. Your browser (and CDN services like Cloudflare) may serve old results, because files are cached by path. There was a recent new option in X3 settings > Advanced > Use image cache buster, which adds ?imagedate behind the image, so that it bypasses cache when updated.
  1. Enable "Use image cache buster" in Settings.
  2. After upload/replace images by FTP, you will need to click SAVE in X3 panel, to make sure page cache gets updated. Else you may find that old images get served if they are cached in browser.

Re: Replace images by FTP

Posted: 01 Jan 2025, 13:16
by Dane
Thank you Karl, i will try that.