Could not upload the file to confluence

When I tri to upload an image file or other media attachment, there comes error message like this:

"Could not upload the file to Confluence. The server may be unavailable."

6 answers

1 accepted

4 votes
Answer accepted

Are you seeing any error in the logs when you do this? Like OutOfMemory errors?

If you're getting this error and you're proxying with nginx, you may be recieving a '413 Entity too large' error. to be changed.

This fixed our problem! Thanks for that!


Maybe your attachment is too big. Maybe you get a more clear error message when uploading via Tools --> Attachments. The limit is adjustable in the general configuration in the administration panel.

I found something wrong in "Attachment storage" field of Admin page.

<th colspan="2">Attachment Storage</th>
<label class="label">Attachments Storage:</label> Filesystem:


The file system field does not show the directory path.

How can I fix this.


This issue can be caused by the configured base URL that is not matching the URL you use to access Confluence via the browser. For example, you access Confluence via while the configured base URL from Confluence Admin > General Configuration is

As a resolution please ensure that the configured base URL must match the URL you use to access Confluence via the browser. Update the base URL from Confluence Admin > General Configuration.

Hope this helps.


Fernando and Brandon gave me the clues I needed to find my own solution: I restarted my ssh proxies on my system and was able to upload images afterwards. (I was able to edit documents with no problems, but needed the proxy running to upload an image.)

The problem can be reproduced by using Insert/Link/Attachments and browsing to a filename where the filename includes one or more single quotes (Example: filename = a'test.xlsx )

The drag-drop method of adding attachments (Go to "Tools" -> "Attachments") works fine.

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...

274 views 2 10
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