İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
9555 Görünümler

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


Avatar
Vazgeç
En İyi Yanıt

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

Avatar
Vazgeç
En İyi Yanıt

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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Nis 15
3155
0
Nis 24
1279
1
Eyl 15
6566
1
Mar 15
3675
2
May 21
6202