Dear all,
I want to attach any kind of file into page in a specific space in confluence from my plugin. So is there any way or API to do this?
Thanks,
Community moderators have prevented the ability to post new answers.
Probably the most easy way to use confluence API is through Bob Swifts Atlassian/Confluence CLI.
You can use the addAttachment command to add an attachment
You can access the tools here:
https://bobswift.atlassian.net/wiki/display/ACLI/Atlassian+Command+Line+Interface
The plugin changed to be commercial recently, but you can download the latest free release here:
Sreylin, given that you are just new at this, working with Nikola's answer is probably a good idea. When you're ready, you can write your own remote client application!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nicola & Matthew,
Thank for the suggestion of both of you. But my problem is that my plugin has to allow users to attach file into confluence page directly without adding attachment to page or using other tools. At first in my opinion, I want to create a plugin module that allow users to attach file because I think that Confluence API may allow me to do this. This is my purpose. But, now I don't know how to do it or where I should start. Hope you can show me how to do it.
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You want to add an attachment INTO a page but NOT attach it to the page? I think that makes no sense. Where are you storing the attachment? What are you trying to do? What is so wrong with adding an attachment to the page?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
oh..May be I use the wrong word. I mean that I want to add attachment to page (sure I have to attach it to the page). Usaully, when adding attachment, I go to the page and add attachment. I think this is the manual way of attaching file into page. But for my plugin, I want to use code(any confluence api) instead of doing this by just providing "pageId" .......
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, then who or what is adding the attachment? A user or automated software system? Can you give us an example? where is the attachment coming from?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
let me tell you about my work. My plugin can allow users to record video or voice. After recording, the recorded video/voice has be to uploaded/attached to a specific page automatically. The attachment can come from local or Confluence Server ( because we have not decided yet where to store recoded file after recording).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, I'm facing the same issue now...Have you figured out how to do that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, any solution found?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The technical documentation is here but I suspect that it may be a little too in-depth initially.
Are you starting from scratch or do you have a working remote client already?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here's a python example
https://confluence.atlassian.com/display/DISC/Upload+attachment+via+Python+XML-RPC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Matthew,
I am very new. I am just starting from the scratch. I have read through the document that you pointed, but I find it hard to understand. I hope you can give me advice on how to do it.
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.