-
Bug
-
Resolution: Invalid
-
Normal
-
None
-
7.0.6.1
-
None
-
None
problem description
according to the doc http://books.zkoss.org/wiki/ZK_Component_Reference/Essential_Components/Button#Upload, we can customize the message about the file size exceeding max size by MZul.2105. But it doesn't work.
steps to reproduce
- put a zk-label.properties under WEB-INF with the value below
MZul.2105=Rejected! because its size ({0}) exceeds the configured maximum ({1})
- run a page with a upload button specified with maxsize like
<button class="btn-info" iconSclass="z-icon-upload" upload="true,maxsize=1,native" onUpload="@command('upload')"/>
- upload a file exceeding the max size
result
the SizeLimitExceededException is thrown, and the standard message is shown
expected result
custom message is shown.
debug info
- no code reference static final int UPLOAD_ERROR_EXCEED_MAXSIZE = 0x2105 + MESSAGE_ID;