Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
Dane
Experienced
Topic Author
Posts: 170
Joined: 04 Dec 2020, 15:05

Replace images by FTP

01 Jan 2025, 02:47

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?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Replace images by FTP

01 Jan 2025, 03:56

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.
 
User avatar
Dane
Experienced
Topic Author
Posts: 170
Joined: 04 Dec 2020, 15:05

Re: Replace images by FTP

01 Jan 2025, 13:16

Thank you Karl, i will try that.