Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Does add attachment API gives chunk upload?

Does add attachment API (<id>//rest/api/3/issue/<issueId>/attachments) gives the way to upload file in chunk?

For large file upload, it failed with 504 Gateway Time-out.

4 answers

The Jira server can't handle 15 MB Documents their server gives 504 Jira must fix the issue

Hello team, Can you please help to resolve this issue? I am also facing this issue and I am stuck.

JIRA server is giving 504 Gateway Timeout error when I upload 24MB Document.


We are creating 3LO App And it's frustrating that Jira server can't handle uploading 15 to 20 MB attachments. Sometimes it does upload attachments and most of the time throws 504.

I can upload very big files to Jira Cloud and Jira Server, via their REST APIs, using a 3LO OAuth'd session, right up to the attachment size limit that has been set, without any problems.

Annotation 2021-12-23 173124.png

Your statement that Jira Server "can't handle 15 MB Documents" has no merit. It's only true for you and your circumstance.

Are you uploading vi 3LO auth API?

Are you uploading attachments using the 3LO app?

Again, as @David Bakkers points out in his answer, the problem is your network connection, not Jira.

Hello @Gaurang Chauhan 

In short, the answer is no. If you read the documentation about the v3 Add attachment endpoint, you will see that there is no mention of it providing any sort mechanism to upload attachments in 'chunks', To the contrary, it provides a tip on exactly what to do:

Tip: Use a client library. Many client libraries have classes for handling multipart POST operations. For example, in Java, the Apache HTTP Components library provides a MultiPartEntity class for multipart POST operations.

Next, if you do a Google search of 'jira rest api attachment chunk' you will see where the topic has been discussed in the Atlassian documentation How to transfer large files to Atlassian. It's amazing what Google will find when you use it.

As @Nic Brough _Adaptavist_ has said, your particular upload is failing because the data stream is being interrupted due to a network issue, which is beyond Jira's control.

Yes I can prove it's issue from Jira server.

We are running into AWS and Azure cloud the low bandwidth is not any issue from our side

Like Gaurang Chauhan likes this

Why Jira service unable handle just 23MB File?

That's probably your network, or upload method, not the service.  The service, when installed with default settings (which are not suitable for any real usage, being way too limited in size), can easily handle uploads far larger than that.

Is Jira has write any specially logic to give 504 those request coming from aws lambada function

I do not understand the question.

Jira will throw an error if your network or client tells it that it thinks the upload is failing.  504 errors happen on network failures.

0 votes

No, it is a simple block file upload function.

Jira is an issue tracker, not a large file store, it is not intended to be a large file store.  It expects attachments to be the odd screenshot or log snippets, not gigabytes of videos or installation images.  So it does not handle large files too well.

If you have large files to refer to for some reason, put them on a proper file storage system and link to them in your Jira issues.

Yes, you are right it is an issue tracker. But I am uploading a video with 24MB and the server gives 504. And that is why I ask about the chunk upload.

Er, yes, I know that, you already told us what the problem was.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

👋 Looking for 15-20 volunteers to test Atlassian training content

Hi everyone! Are you interested in beta testing Atlassian University’s newest (unreleased!) training course? We’re looking for 15-20 volunteers to test our newest training course, Basic reporting...

461 views 19 23
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you