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

This widget could not be displayed.

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

This widget could not be displayed.

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

This widget could not be displayed.

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.

This widget could not be displayed.

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!

This widget could not be displayed.

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

This widget could not be displayed.

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 Sep 17, 2018 in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

540 views 7 6
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