Forums

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

I need an api that returns the information about the maximum permissible size of an attachment

Hussein Dbouk July 25, 2023

I need to inform the users about the maximum permissible size of an attachment before uploading any

2 answers

1 accepted

1 vote
Answer accepted
Kai Becker
Community Champion
July 25, 2023

Hi @Hussein Dbouk 

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

Hussein Dbouk July 25, 2023

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.

Like Kai Becker likes this
Kai Becker
Community Champion
July 25, 2023

Hi @Hussein Dbouk 

glad I helped. To finish this up: The information can also be queried on onprem

<jiraBaseUrl>/rest/api/2/attachment/meta

Hussein Dbouk July 25, 2023

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

0 votes
Balaji Shriram Murkute
Contributor
July 25, 2023

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.

Rest API for cloud  

Regards,

Balaji Murkute

Hussein Dbouk July 25, 2023

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events