Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,296,437
Community Members
 
Community Events
165
Community Groups

Inserting an image from the clipboard filename does not get a timestamp

Edited

Since Confluence version 7.17, inserting images via the clipboard no longer works correctly. The image does not get a timestamp in the file name. This leads to the fact that a second inserted image gets the same file name (always grafik.png) and overwrites the first image. There is also no error message that the filename already exists.
Before version 7.17 images always got a filename in the form imageYYY-MM-DD_HH-MM-SS.png.
Possibly it is a problem of the translation. We use german

1 answer

1 accepted

0 votes
Answer accepted

We using Confulence Version 7.17.2 self hosted Server.

We use Firefox 100. The image name is always grafik.png.

Now i treid with the Chrome Browser Version 101.0.4951.64 and here I get a correct file name with timestamp e.g. image2022-5-12_10-50-39.png

There seems to be a problem with the new Firefox version.

 

We are using Confluence Version 7.17.4 and have the same problem.

If we use the same Firefox version and do the clipboard insertion (with CTRL-V) at a Jira comment or the description field then a file is generated with a unique filename.
This indicates for me that there is a problem with Confluence working together with the current Firefox version.

I have found the error. In newer Firefox versions, the filename has now been translated for Copy&Paste.

In older Firefox versions the name image.png was transmitted when inserting an image. In newer Firefox versions image.png was translated to grafik.png.

The javascript checks for image.png and then inserts the timestamp:

Here is the code:
if(e.name&&"image.png"!=e.name)o=e.name;else{var c=r?"-".concat(r):"";o="image".concat(i.getFullYear(),"-").concat(a,"-").concat(i.getDate(),"_"). concat(i.getHours(),"-").concat(i.getMinutes(),"-").concat(i.getSeconds()).concat(c,".png")}return{fileName:o,fileSize:t,slice:function(t,n){

 

Like Peter Ovenhausen likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.17.2
TAGS
Community showcase
Published in Confluence

Confluence: Where work and wellness meet

Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋‍♀️ ...

1,026 views 18 28
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you