From 258a04664ad141cf6ce125a832aaba263c0aa9cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Wed, 16 Oct 2019 09:25:09 +0000 Subject: [IMP] web: increase file limit from 25mo to 64mo The fieldbinary widget has an internal max upload limit set to 25mo. This was set a long time ago, probably more than 5 years ago. Since then, a lot of things have changed and it may be more frequent for users to hit the limit. And it happens for some users, we had to increase locally their limit. Also, nginx is configured to accept files up to 64 mo, so it makes sense that the web client also uses that same limit. closes odoo/odoo#38856 Signed-off-by: Aaron Bohy (aab) --- addons/web/static/src/js/fields/basic_fields.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static/src/js/fields/basic_fields.js') diff --git a/addons/web/static/src/js/fields/basic_fields.js b/addons/web/static/src/js/fields/basic_fields.js index c8504eaa144..2c3e03681db 100644 --- a/addons/web/static/src/js/fields/basic_fields.js +++ b/addons/web/static/src/js/fields/basic_fields.js @@ -1633,7 +1633,7 @@ var AbstractFieldBinary = AbstractField.extend({ this._super.apply(this, arguments); this.fields = record.fields; this.useFileAPI = !!window.FileReader; - this.max_upload_size = 25 * 1024 * 1024; // 25Mo + this.max_upload_size = 64 * 1024 * 1024; // 64Mo if (!this.useFileAPI) { var self = this; this.fileupload_id = _.uniqueId('o_fileupload'); -- cgit v1.2.3