Hello, I am developing plugin for Confluence, and plugin has own page where we have a form for uploading images and I would like to retrieve Attachment Maximum Size value from Global Configuration and check. How can I do this within my plugin code ?
Hi Dmytro,
Have you already tried to load it using the com.atlassian.confluence.setup.settings.DefaultSettingsManager? This manager provides a getGlobalSettings() method which returns a Settings object allowing you to ask for getAttachmentMaxSize().
You need to inject it as any other manager.
Best,Tobias
Dmytro,
Go to Systems --> Advanced --> Attachements --> Edit Settings
victor
Hi,
Yes already , Thank you, it works for me.
It looks like you're new here. Sign in or register to get started.