1 Reply Latest reply on Nov 28, 2007 4:46 PM by Shane Bryzak

    Seam Filter + Commons fileupload problem

    holgerprause Newbie


      i am using the commons file upload api in a servlet to upload files.

      I noticed when declaring the seam filter in web.xml

       <filter-name>Seam Filter</filter-name>
       <filter-name>Seam Filter</filter-name>

      common file upload dont recognizes the multipart content anymore
      (statement returns false)
      boolean isMultipart = ServletFileUpload.isMultipartContent(request);

      Well i also tested this on other upload apis(oreilly, seam fileupload) and it seems only to be a problem with the commons fileupload api(commons-fileupload-1.2).

      I got 2 questions on this.

      1) Does the Seam Web Filter do something "unusual" to the request object?
      2) i noticed when i declare the filter this way:

       <filter-name>Seam Filter</filter-name>

      it works ,will i have any drawbacks with that solution?

      Thx very much,