diff options
| author | Géry Debongnie <ged@odoo.com> | 2019-10-16 09:25:09 +0000 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2019-10-16 09:25:09 +0000 |
| commit | 258a04664ad141cf6ce125a832aaba263c0aa9cd (patch) | |
| tree | ddf24b815c273f3b01a31f1e29e4c731cf4275d0 /addons/web/static/src/js | |
| parent | ca3e898481f4091c420a8e9ed498624a591303e9 (diff) | |
[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) <aab@odoo.com>
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/fields/basic_fields.js | 2 |
1 files changed, 1 insertions, 1 deletions
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'); |
