I need to inform the users about the maximum permissible size of an attachment before uploading any
the maximum size allowed can be fetched via the following API endpoint:
<your cloud url>/rest/api/3/attachment/meta
Documentation can be found here: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments/#api-rest-api-3-attachment-meta-get
Hi @Kai Becker I wanna thank you so much for your support , it really helped on the cloud instances but I was wondering if this is possible on data center instances.
Thanks ,
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
glad I helped. To finish this up: The information can also be queried on onprem
<jiraBaseUrl>/rest/api/2/attachment/meta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Kai Becker im really thankful , I feel embarrassed to be honest because I searched for this api in the documentation https://docs.atlassian.com/software/jira/docs/api/REST/9.3.0/#api/2/attachment-getAttachmentMeta , passed over it and still didn't see it,
Thanks for the support again , I really appreciate it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Hussein Dbouk ,
I hope below REST API helpful for you , please check.
GET/rest/api/3/attachment/{id}
Returns the metadata for an attachment.
Or please follow the below attachment related ATLASSIAN rest API documentation.
Regards,
Balaji Murkute
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Balaji Shriram Murkute thank you for your support , the community leader Kai Becker provided me with the following api call
<your cloud url>/rest/api/3/attachment/meta
as it is the one that reveals the maximum permissible size of uploading an attachment
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.