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

Submit a nested form via ajax to upload a file inside modal window does not work on IE.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.4
    • 1.4.8, 1.5-M1
    • wicket
    • None
    • Windows XP, IE7, IE8

    Description

      I'm trying to submit a nested form via ajax to upload a file inside modal window.
      I get an exception:
      java.lang.IllegalStateException: ServletRequest does not contain multipart content. One possible solution is to explicitly call Form.setMultipart(true), Wicket tries its best to auto-detect multipart forms but there are certain situation where it cannot.
      at org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.<init>(MultipartServletWebRequest.java:113)

      After debug:
      FileUploadBase.isMultipartContent get false because

      if (contentType.toLowerCase().startsWith(MULTIPART)) - contentType = application/x-www-form-urlencoded

      It only occurs on IE browser (both IE7 and IE8).

      Attachments

        1. modalproject.zip
          10 kB
          Michał Letyński

        Issue Links

          Activity

            People

              ivaynberg Igor Vaynberg
              mikel Michał Letyński
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: