The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

TAGS
AUG Leaders

Atlassian Community Events