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

11 votes
Accepted answer

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 Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,012 views 0 5
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