Overwriting attached images doesn't work

Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 27, 2017

Hello everyone,

I have a page with 20 images and need to make changes to those images.

I downloaded all the attached images, edited them in an external program and uploaded them again and was expecting that the changed images would automatically replace the old ones, but that is not the case.

When I go to "attached images" and click the images, I can see that they have changed but on the page it still shows the old versions.

Why is that? And what can I do to change that?

Going edit > insert > image is not an option since I also need to change image size and correctly position them on the page.

2 answers

0 votes
Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 2, 2017

I found out what the problem is:

If you copy & paste images to a Confluence page, Confluence automatically renames them to something like "image2017-7-26 14:17:39.png".

And because of the colon in that name, it seems impossible to change and overwrite those images.

  • If I download the images and unzip them, the ":" is changed to "_"
  • If I open such images and I try to change "_" back to ":" I get messages "not allowed", "can't contain any of the following...", etc.

How can I avoid or circumvent this? Anybody have another idea?

Again, all I want to do is, download an image, make changes, upload it again and overwrite the old image...

Joe Hockaday June 10, 2021

I had this too. Obviously I had dragged and dropped my originals when I first wrote the page. When I changed them and updated the page it was fine in the edit view, but when I published it _always_ reverted to the original.

I had to delete the originals, publish, change the file names on my local disk, re-upload the new with the 'insert image' button and choose the files with the new names, publish and it then worked.

Thanks Steffen for the hint. No thanks Atlassian for no fix on this in nearly 4 years. About right for your software quality.

0 votes
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 30, 2017

I wonder if your browser is caching the old images. I just downloaded a .png, rotated it in an image editor, and then uploaded it with the same name. Now it renders on the page as rotated - my edited version. 

Please try with an incognito browser or a browser that hasn't loaded that page before.

I am testing with Confluence Server version 6.4.3, please let me know what you are running - Cloud or Server and server version if you aren't on Cloud.

Steffen Heller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 30, 2017

Thanks Ann for the answer.

I am using Atlassian Confluence 4.3.7, Server.

Did you also try with an image whose size was changed in Edit mode? I was worried that changing the size of the image could create a new file that does not relate to the original file anymore.

If you change an image to a size smaller than 301 pixels the image path changes from
"/download/attachments/{some number}/{file name}" to
"/download/thumbnails/{some number}/{file name}"

Could this cause problems?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events