CASE: Use the max_size attribute to limit file upload

You can now use the max_size attribute for file inputs. This can be helpful if the maximum size of a document in, for example, the annual accounts or corporate tax file is restricted by the government. Note that the check is performed file per file.

{% stripnewlines %}
{% newline %}
| Company documentation
| {% input as:file max_size:2 %}
{% endstripnewlines %}

Schermafbeelding 2022-02-09 om 10.59.48

Remark that this error text will only be shown when saving new files. When files were added before the max_size attribute was added to the code, they will not throw an error unless you remove and add them again.