Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
7918 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 7 24
4963
0
thg 6 23
2915
0
thg 2 21
2545
0
thg 2 16
5147
1
thg 3 15
4255