Bulk upload new versions of attached files to a page or whole space?
Asked by Helen Gosper:

*This question is in reference to Atlassian Documentation: [Manage Files](https://confluence.atlassian.com/pages/viewpage.action?pageId=139415)*

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.


Answers:
author: Rachel Robins
body: 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>

comments: author: TomC
body: 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).


author: Helen Gosper
body: 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.


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

As I mentioned in my post below, and reiterated by @Rachel Robins, just dragging and dropping a selection of files as new versions of your existing files attached to the pages ... with the same file name ... will update all your existing attachments - be they images, Word docs, Excel ....


author: Helen Gosper
body: @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.


author: Rodney Hughes
body: 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


Tags: attachment

confluence-administration

upload