attaching multiple files with same name

AS
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 10, 2020

Hi All, 

 

I am looking to upload DIFFERENT files with same name but it keeps creating new versions of it due to name being the same.  Is there anyway to alter this behaviour have have either: auto unique rename or an alert if a version of file already exists?

4 answers

3 votes
Dominic Lagger
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.
March 10, 2020

Hi @Aqib_sherwani 

This is an extract from the documentation

If you upload a file with the same name as an existing attachment on the same page, Confluence will overwrite the existing attachment. Version history is kept for all attachments. See Manage Filesto find out more. 

Any changes you make to the source file will not affect the copy that was uploaded to Confluence. To update the Confluence copy, you need to upload the new version of the file.

So, there is no option to change this behaviour. 

Why you want to do this?

Regards, Dominic

Sara Nicholson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 16, 2020

Not to hijack but I have some examples of why I'd want this.

 

Use case 1:

As a designer, I want to upload images to Confluence to solicit feedback.

As a designer, I want to update designs to the same file locally but keep a visual history of all changes on the Confluence page.

As a designer, I don't want to keep renaming a file locally just so it doesn't get overwritten on Confluence.


Use case 2:

As a designer, I want to upload screenshots taken with Skitch.

  • Skitch has saved the screenshots with the same name since they were taken from the same window

As a designer, I want all of my screenshots to appear as different images, not overwrite each other.

 

Having a system that either warns if you have the same filename being uploaded, renames the used files automatically or just allow multiple uploads with the same filename would be immensely helpful to some of us.

Like # people like this
Dominic Lagger
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.
April 16, 2020

Hi @Sara Nicholson 

Use case 1:

If you upload a file, the "old" file isn't gone. Every attachment has it's own history. 

Use case 2:

I'm not aware, that there's a plugin which could display every version of an attachment. If you are on server, I'm sure it would be possible to write an user macro, which would display every version of an attachment.

Regards, Dominic

1 vote
Michael Miller
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 27, 2023

Here is my scenario.  I have a page with a table.  Each row contains a contents file.  The file may contain different contents, but the file name same is always the same.  I understand overwriting an attachment in a page, but within a table, each cell should be independent.  Dropping a file in one cell should not overwrite a file in another cell.

0 votes
Marcel Mohr
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 5, 2022

I would also vote for the possibility to add multiple files (pictures) with the same filename.

E.g. Auto-generated plots that are shown on a confluence pages have the same filename. 

 

Azure Wiki renames the uploaded files to by itself. But this is also not good in every case. Maybe a suffix for each file, like a number or timestamp. Or a user switch, if files should be overwritten or timestamped?. 

0 votes
David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
March 10, 2020

This is expected behaviour. 

If you want multiple files attached rather than multiple versions of the same file, give them different names.

Elias Hajjar October 14, 2021

Can you please explain why would someone want this expected behaviour?  

Like TomoyukiAota likes this
TomoyukiAota
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 17, 2022

Confluence should give a warning message when the files are overwritten by uploading another file with the same filename.

 

I hit a problem that 1) running a script to generate different images with different settings (still having the same filename), 2) pasting the images into two different places in the same page (to compare the result of the different settings of the script), and finally 3) seeing the same image in two places in the page, which confused me a lot.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events