Could not upload the file to confluence

Jonghyuck HONG March 11, 2012

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
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 11, 2012

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

3 votes
Brandon Beveridge April 10, 2014

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.

Scott Molinari May 5, 2014

This fixed our problem! Thanks for that!

Scott

2 votes
NielsJ
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 11, 2012

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.

Jonghyuck HONG March 12, 2012

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.

1 vote
FernandoA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 25, 2012

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!

0 votes
GaryM June 18, 2015

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.

0 votes
Alexis Morganza June 9, 2014

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events