Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3003

Overriding MZul.2105 doesn't override the max size exceeding message

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Normal 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

      1. put a zk-label.properties under WEB-INF with the value below
        MZul.2105=Rejected! because its size ({0}) exceeds the configured maximum ({1})
        
      2. 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')"/>	
        
      3. 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;

            Unassigned Unassigned
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: