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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dmytro,
Go to Systems --> Advanced --> Attachements --> Edit Settings
victor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.