This small Java program allows you to easily upload many files to a confluence page. Download this jar file. On most operating systems you can execute it simply by double-clicking on the downloaded file. You can also run it from the command line using:

java -jar ConfluenceFileUploaderExecutable.jar

Once you run this file a dialog like this should appear:

Click "Add files" and select the files you want to attach. Then click next and the following dialog should appear:

Click "Add Server" and fill in the dialog with the confluence URL (https://confluence.slac.stanford.edu) and your confluence username and password.

(On future invocations this information will be remembered and will not have to be reentered).

Security Alert

Make sure you include the 's' in https://, otherwise your username/password will be sent across the network in plain text. This tool creates a file in your home directory called confluence-fileupload.preferences which contains your username/password in plain text, you must delete this file after use.

Now click next:

Select the confluence space and page that you want to add the attachments to (it must already exist). Click next once more and it should upload and attach all your files.

For more information see:

http://confluence.atlassian.com/display/CONFEXT/Confluence+File+Uploader

Another potentially interesting tool:

http://confluence.atlassian.com/display/CONFEXT/Confluence+Command+Line+Interface

This write-up was originally provided by Tony Johnson