Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
7202 Vues

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

Avatar
Ignorer
Meilleure réponse

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;
    }
}


Avatar
Ignorer
Publications associées Réponses Vues Activité
2
juil. 24
3720
0
juin 23
2232
0
févr. 21
2022
0
févr. 16
4515
1
mars 15
3822