Forums

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

Upload images in a custom confluence macro dialog

Stefano Arnone
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 10, 2018

Hello, I want my custom macro to insert images in a page but I don't like the fact that I have to upload the files beforehand and look for them in the page attachments.

I was looking at the create attachment api (POST rest/api/content/pageid/child/attachment) and I was thinking to use that inside my dialog js,

Is there an easier way to do this? For example, would it be possible to override the existing upload image macro in some way?

Thanks

 

1 answer

0 votes
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 14, 2018

Hello Stefano and welcome to the Community!

Something to be aware of is this is a support community and not often browsed by developers. We want to ensure you get the responses and answers you need so we would suggest you check out the Developer Community. The Developer Community may have more available resources to answer or address your developer questions.

Regards,
Stephen Sifers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events