Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot upload image to Confluence

Maksym Balabaiev March 15, 2018

Hello,

Everytime I trying to upload image to the page I editing, getting an error "HTTP Error" with no any codes, numbers or exceptions.

I've tried to disable all the add-ons using Safe Mode, it doesn't help. And no information regarding the trouble in log files as well.

Please, advise how to troubleshoot and resolve this.

Confluence works under nginx frontend and client_max_body_size has been set correctly.

Thank you

1 answer

0 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 15, 2018

Hi there,

Have you seen any messages show up in your Confluence logs? Is this for any image at all? Do you happen to be behind a proxy?

Regards,
Shannon

Maksym Balabaiev March 15, 2018

Hi, Shannon. I was watching to the log files. There is nothing regarding the upload error. It happens with any image and files I trying to upload.

Yes, Confluence works behind a proxy, nginx and it has been set with all the requirements as I mentioned above.

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 16, 2018

Thank you!

Can you check your Network tab in Chrome's Developer Tools? This user had the same issue and discovered an error there which allowed him to correct the issue in his NGINX configuration.

Shannon

Maksym Balabaiev March 16, 2018

Thank you, I got the reason.

To set the following is not enough: client_max_body_size Nm;

where N is a count in a megabytes.

I've added to the http section of nginx.conf the following:

        client_body_timeout 300s;
        client_body_in_file_only clean;
        client_body_buffer_size 16K;
        client_body_temp_path /path_to_tmp;

After this changes it became work properly.

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 16, 2018

Happy to hear that you were able to find the cause!

If you'd like you can share your resolution as a new answer, under Suggest an answer and I can accept it as the right answer and mark the case as resolved.

Regards,

Shannon

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events