The results showed that all the 3 images still pointed to the remote server (atleast the code didnt’ change to show it was pointing locally or to amazon). Note that I’ve enabled the option to upload content to Amazon S3 (if that matters).
I’ve been through some posts which talk about ways to prevent it from downloading but in this case the 3 most common ways of posting an image doesn’t seem to download it.
So under what conditions does downloading remote images work and what’s the best way to configure it?
If Download remote images to local SiteSetting enabled whenever a post created then all the external images will be downloaded locally (In all 3 above cases). But the downloading process will start only after editing_grace_period SiteSetting (default 10 minutes) from the creation of post. Also it will not be triggered for existing old posts when you enable the Download remote images to local SiteSetting. For that you have to recook all old posts.
Also downloading remote images will not work in below conditions
SiteSetting download_remote_images_to_local is disabled.
Enough disk space not available to download. (In this case you will receive notification about the problem). Also look at the download remote images threshold SiteSetting.
If the post date is before download_remote_images_max_days_old SiteSetting.
If the image is from one of the domains of disabled image download domains SiteSetting.
Great thanks that worked, also want to clarify for the benefit of others, in my examples above, the 1st and 3rd options WILL lead to an automatic download after the conditions in your post are satisfied. However the 2nd example, WILL NOT download the remote image.
So, these WILL automatically download (after your conditions are satisfied, the code will be replaced to reflect the local url or amazon S3 url)
I was wondering whether the case it is still only new messages on creation that are fetched or whether it is now changed and old messages are also fetched.
I’d like to ensure only new message have images downloaded as I imported a lot of old messages and don’t want to bloat up the server.