Inserting two or more files with the same name doesn't work correctly

Consider two text files

folder2/a.txt with contents "This is the first file"

folder1/a.txt with contents "This is the second file"

Insert the first file and then the second. 

Confluence replaces the first file with the second but it doesn't warn you. Both text files will have the content "This is the second file"

Please fix this bug.

2 answers

1 accepted

2 votes

It is actually a feature of Confluence for file versioning. There is no folder structure in Confluence and it just thinks that you are uploading a new version of the same file (file name is the unique attribute here). And you can browse the different versions when you are viewing the file!

If those 2 files are different, either you should rename it or they should go to different pages in Confluence.

Thanks for clarifying.

But doesn't this call for a warning? 

The only way I figured this was happening was that I was inserting PDFs and could see the previews. If it were a non-previewable file, there was no way I would have known. 

A warning  like this would be helpful:

"An older item named “a.txt” already exists in this page. Do you want to replace it with the newer one you’re inserting?"

Makes sense for new users. But imagine the warning appearing to all the users who knows about this feature. Can be annoying for many :) Having said that, it is my personal opinion and it won't hurt to create a feature request for the same in jira.atlassian.com. Maybe the warning needs to appear only for new users or it can be a one time pop-up which can be turned off.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

866 views 23 12
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you