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:
...
Once you run this file a dialog like this should appear:
Wiki Markup |
---|
!CropperCapture\[1\].Png! |
Click "Add files" and select the files you want to attach. Then click next and the following dialog should appear:
!CropperCapture\[3\].Png! Wiki Markup
Click "Add Server" and fill in the dialog with the confluence URL (httphttps://confluence.slac.stanford.edu) and your confluence username and password.
!CropperCapture\[2\].Png! Wiki Markup
(On future invocations this information will be remembered and will not have to be reentered).
Warning | ||
---|---|---|
| ||
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:
Wiki Markup |
---|
!CropperCapture\[4\].Png! |
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.
Wiki Markup |
---|
!CropperCapture\[5\].Png! |
To Do
- Check if this works using https (I imagine it will require the unlimited strength cryptography extension)
- Find out where it stores the confluence URL (in particular the password)
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