3 Replies Latest reply on Sep 27, 2012 12:53 PM by cluxig

    rich:fileupload in internet explorer

    rednose

      The fileupload component does not work properly in ie (I tested this in IE9 and Richfaces v4.2-Final). After the upload is completed - that is the post-request is completely sent and the response received - richfaces does not process the response correct, so that the progress bar remains displayed and the gui doesn't get updated.

      I guess this bug should just be added to the Issue Tracker but I don't know how to do this. This problem even exists in the demo in the Richfaces Showcase web page.

       

      In the dynamic javascript file - like 'fileupload.js?ln=org.richfaces...' starting in line 209 in the __load-function - the response is verified but this always fails, although the response equals the ones received by other browsers, hence must be valid.

        • 1. Re: rich:fileupload in internet explorer
          ppitonak

          Hi,

           

          I guess it could be the same problem as was reported for Chrome (https://issues.jboss.org/browse/RF-10835). Please review that issue and comment/vote on it if it is the same behavior also in IE9. To comment you need to login to Jira using the same account as on this page.

           

          Regards,

          Palo

          • 2. Re: rich:fileupload in internet explorer
            rednose

            Hi Palo,

             

            I can't reproduce the Chrome-issue, so I am not sure about that, but I think that my problem is a special IE-feature as it differs in the way it's happens just after the upload is completed.

             

            Best Regards

            • 3. Re: rich:fileupload in internet explorer
              cluxig

              Hi,

               

              even for the latest showcase (http://showcase.richfaces.org/) the fileUpload does not work with IE9. After some investigation, we propably found a solution or at least a workaround for this issue.

              At first, it does not work in the ugly IE Quirks mode.

               

              If somebody had set the compatible mode to "IE=8"

              <meta http-equiv="X-UA-Compatible" content="IE=8" />  

              it doesn't work either. (I guess the most of the developer had set this, because of several CSS issues in quirks mode).


              The trick is to set compatible mode to "IE=edge"

              <meta http-equiv="X-UA-Compatible" content="IE=edge" />
              

              which means the browser-mode is IE-9 as well as the document-mode is IE-9 (but not quirks). (For IE-8, both will set to IE-8 automatically)

               

              One can check this out for the showcase, too. (Use hot-key F12 to open the IE console.) By default the document-mode of the showcase page is set to "IE-8 compatible" (caused by meta-tag ..."IE=EmulateIE8"). If you change the document-mode to IE-9 (the browser-mode should already set to IE-9), the fileUpload works as expected.

               

              Have fun.