Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
7865 Vizualizări

How can I increase the size limit of uploading a file?


I tried to change in ./addons/web/static/src/js/fields/basic_field.js the following:

this.max_upload_size = 125 * 1024 * 1024; // 25Mo


But it didn't work.

Do you have any clue?


Thanks in advance,

Tiago

Imagine profil
Abandonează
Cel mai bun răspuns

Hi, if you are using nginx as proxy, the easiest way is to increase data size limit. Edit you nginx conf file then increase  client_max_body_size parameter value , you can also increase request timeout. 

You file should be something like this

server {
    client_max_body_size 100M;
    ...
    location / {
        ...
        proxy_send_timeout 300;
    }
}


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
iul. 24
4877
0
iun. 23
2892
0
feb. 21
2493
0
feb. 16
5102
1
mar. 15
4224