Cannot attach file ****.pdf: Unknown server error (413).


Plugin unable to attach file to the project if file size larger than 1 MB.

The limit is set to 20 MB.

What's can be wrong?

9 answers

1 accepted

2 votes
Accepted answer

That was our fault - the problem is in nginx configuration.

While you didn't post the answer here, I assume that it was simply setting client_max_body_size in your nginx config. That certainly solved things for us.

We had the same problem when we moved the system from Windows to Centos with nginx, to resolve it just edit your nginx.conf file which should be somewhere here:


In the http section add the client max body size

client_max_body_size 10M;

If you have more websites running, you can also add this in your jira conf or confluence config file.


Can you post the exception details?

How/where can I get exception details?

log/atlassian-jira.log does not contain any similar to plugin exception information.

may be the log from the tomcat logs directory /<jira-installation-dir>/logs. You will find a lot of logs there like access.log, etc

Could it be possible that a network applicance or proxy server could be throwing the 413? Can you verify the presence of either of those? Could yo hit the machine via localhost direct to port and try the same operation?

Hi Alexandr!

Please report this on the Bitbucket repository of Documents:

Then someone from support will get in touch with you.

Thank you,


access.log does not contain any plugin exception info

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

807 views 3 9
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you