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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

1,920 views 25 10
Join discussion

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