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

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. http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_sizeneeds to be changed.

This fixed our problem! Thanks for that!

Scott

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:

$action.getLocalAttachmentDirectory()

The file system field does not show the directory path.

How can I fix this.

Hi,

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 http://atlassian.net:8090 while the configured base URL from Confluence Admin > General Configuration is http://atlassian.net/confluence.

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.

Cheers!

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

679 views 21 12
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