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
Accepted answer

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
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

158 views 3 5
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