Getting HTTP Error, when uploading a file

I'm uploading a file of 1.5MB in size with 10MB attachment size limit in Confluence settings. Upload fails with HTTP Error message under upload progress bar.

File itself is JPG file with wrong header information (see attachment).

2 answers

1 accepted

12 votes
Answer accepted

The problem lied in server configuration where Confluence was installed.

We use nginx as a proxy to transfer requests from virtualhost to actual TomCat post of Confluence. After inspecting Network tab of Chrome browser during upload HTTP 413: Entity Too Large error was discovered, that was coming in from Nginx.

After a bit of Googling solution was found: increase size of "client_max_body_size" setting in Nginx configuration.

Hello Dmitry,

To better understand what is exactly happening with your instance and better help you I would suggest you to raise a support ticket at our and attach to the ticket your 'atlassian-confluence.log' and a screenshot of this behaviour.

Best Regards,


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,625 views 4 13
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