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 custom.company.documentation as:file max_size:2 %}
{% endstripnewlines %}
Output:
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.