Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I add images from the local folder to a particular confluence page

Nachikethas E November 13, 2022

So, I am writing a code for automatically updating images to the confluence page. But I am not able to update images from local folder, it is showing unknown attachment

1. If I am adding an image to attachments and trying to access it -> It can be accessed successfully

2.I need a method to access images from local directory or how to add images to confluence attachments through script and how can I access each 

1 answer

1 accepted

0 votes
Answer accepted
Fabio Racobaldo _Catworkx_
Community Champion
November 13, 2022

Hi @Nachikethas E ,

welcome to the Atlassian community!

You can interact with your confluence (cloud or server) through REST Api. In particular, you can use the following api https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content---attachments/#api-wiki-rest-api-content-id-child-attachment-post from your own script. There are some examples on the provided link.

Hope this helps,

Fabio

Nachikethas E November 18, 2022
Fabio Racobaldo _Catworkx_
Community Champion
November 18, 2022

you're welcome @Nachikethas E . Please mark my answer as accepted if it solved your question

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events