Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6181

Revert the removal of the default error message when uploading too big files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 6.23.0
    • 6.24.0
    • wicket
    • None

    Description

      With WICKET-5735 the default error message for "form upload too big" has been removed unintentionally:

      In 6.17.0:
      final String defaultValue = "Upload must be less than " + getMaxSize();
      String msg = getString(getId() + '.' + UPLOAD_TOO_LARGE_RESOURCE_KEY,
      Model.ofMap(model), defaultValue)

      While in 6.23.0:
      String msg = getString(getId() + '.' + UPLOAD_TOO_LARGE_RESOURCE_KEY,
      Model.ofMap(model));

      This makes it hard to specify an error message when using nested forms and the inner form has FileUploadField.

      Attachments

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              mgrigorov Martin Tzvetanov Grigorov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: