summaryrefslogtreecommitdiff
path: root/addons/base_sparse_field/tests/test_sparse_fields.py
diff options
context:
space:
mode:
authorFabien Meghazi <fme@odoo.com>2017-01-11 11:59:06 +0100
committerFabien Meghazi <fme@odoo.com>2017-01-12 10:50:14 +0100
commit402379a48a31bc486145e81d8dae2910ae446b48 (patch)
tree02a5aa0baa2dba69ac5489a6e389d42149ceddd9 /addons/base_sparse_field/tests/test_sparse_fields.py
parent3345256579778b4f924b976d6901f28c20b20bb3 (diff)
[IMP] Remove arbitrary file upload limit (25Mb) and turn it to an option (Fixes #14824)
The hard coded limit dates back to a time where the browsers would crash when using FileReader#readAsDataURL() on files of serveral dozens of Mb. This limit is now obsolete and even IE Edge now supports the FileReader api. This commit removes the limit and turns it into an option so it's possible to limit a particular binary field to a given amount from the form views, eg: <field name="image" widget="image" options='{"max_file_size": "200k"}'/> Note: this feature only works when the FileReader api is available. At time of writing, all major browsers supports this feature: http://caniuse.com/#search=FileReader
Diffstat (limited to 'addons/base_sparse_field/tests/test_sparse_fields.py')
0 files changed, 0 insertions, 0 deletions