Bulk upload new versions of attached files to a page or whole space?

This question is in reference to Atlassian Documentation: Manage Files

Is there a solution that allows me to either bulk upload new versions of attached files (specifically images) to a page, or even to bulk replace within an entire space? I'm using Confluence Server 5.8.5 but am also asking the question in relation to Confluence Cloud. Thanks.

2 answers

1 accepted

0 vote

Hi Helen, Confluence itself has no bulk actions for files.   However, if the filenames for the images are the same as the existing, attached ones, you could bulk replace them on a page by page basis (either by going to the Attachments page and dragging multiple files in, or in the Files dialog in the editor - if you do it in the editor, the changes won't be reflected until you save the page - it catches me out every time!). 

If the filename is different unfortunately you'll need to replace the files one by one in the file preview (or in the editor). 

Bob Swift's CLI solution may provide a way to automate this - I have used it for doing other bulk operations, including bulk deleting files, but not for replacing them. https://marketplace.atlassian.com/plugins/org.swift.confluence.cli/cloud/overview

I can verify from a customer experience that the dragging of multiple files to the Attachments section of a page works great, and as Rachel alludes to, they will version if the same file name is kept for each updated file.

I don't know the limit of how many files can be dragged in at one time but I think its quite a few (we haven't found the limit yet).

Thanks @Rachel Robbins, although I was hoping there would be something more global than this, your suggestion will help. Luckily, I;m pretty rigorous with my file naming conventions (mostly), so will just be a case of plodding through a few pages.

@Helen Gosper  I'm a bit confused - exactly what "bulk operations" do you need to do as "more global"?

@Rodney Hughes I was thinking of replacing images on several pages at once. But I'm familiar with dragging files to update so that will be fine.

For a page, click the ellipsis (the three dot icon top right)

select Attachments

Now open your PC file browser window so you can see both Confluence and the browser windows

In the Browser window, select all the files you want to upload, then just drag and drop into the Confluence drop zone - they will load sequentially

If the files you upload have EXACTLY The same file name as an existing file, the old file on Confluence is automatically "archived" as an earlier version reference.
If the main body page has an embedded link to that attachment, that link is always retained as the link to the latest version
You can see the different versions via the ellipsis>Attachments and click the chevron at the left of the file name

If your main page has the Attachment macro embedded, you can do the same thing as above directly without using the ellipsis>Attachments step

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,777 views 26 10
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