Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
9571 Widoki

Hi, 
Attachments greater than 1 MB in odoo keeps loading. Odoo never gets the attachment loaded.
I have checked everything I can think of, every parameter in .conf file but couldn't find where issue exists. I see message "Don't Leave Yet Still Loading ....."
oDDon'n't Donleave yet,on't Don't leave yet,it's still loading...eave yet,it's still loading...
PS:  In left lower corner I can see 100% upload is done. On browser's console I see errorDon't leave yet,it's still loading...Thanks

POST http://my-odooinstance.com/web/binary/upload_attachment 413 (Request Entity Too Large)

jquery.js:2972


Awatar
Odrzuć
Najlepsza odpowiedź

Add
        client_max_body_size 30000M;
        client_body_buffer_size 200000k;
this 2 options in etc/nginx/sites-available/default or etc/nginx/nginx.conf whichever is applicable

Awatar
Odrzuć
Najlepsza odpowiedź

Hi John,

answer is a bit late, but for the sake of closure: this problem is related to your NGINX config. As you know, NGINX config is a little bit tricky, but basically you can enter parameters on http, server and location levels. So somewhere in your NGINX config (e.g. in /etc/nginx/nginx.conf for http level or in /etc/nginx/sites-enabled/<HOSTNAME>.conf for server level, look for this line:

    add_header X-Frame-Options DENY;

and replace it with this line:

    add_header X-Frame-Options SAMEORIGIN;

and restart nginx. Remember to check the nginx documentation, bcause if you change this setting on http level, it will affect other sites on the server as well, and if you add the add_header command on server level, nginx will ignore all add_header directives that you entered on http level.

Solution drawn from: https://github.com/odoo/odoo/issues/18137#issuecomment-459706730

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
kwi 15
3159
0
kwi 24
1296
1
wrz 15
6576
1
mar 15
3680
2
maj 21
6215