2 Replies Latest reply on Apr 8, 2011 6:25 AM by rsmithh

    SOLVED: File Upload works in Chrome but not Firefox

    rsmithh

      In Chrome, all is as it should be.

       

      In FF (and IE8), although I can see the HTTP POST in Wireshark, my uploadListener() method is not invoked.

      The only unusual thing I can think of is that my upload tag is in an iframed page within my application.

       

      Here is my tag ...

       

       <rich:fileUpload
                          listHeight="60px"
                          listWidth="120px"
                          allowFlash="false"
                          clearControlLabel=" "
                          autoclear="true"
                          disabled="false"
                          maxFilesQuantity="1"
                          addControlLabel="CSV File"
                          uploadData="#{tl2010.uploadData}"
                          fileUploadListener="#{tl2010.uploadListener}"
                          acceptedTypes="csv"
                          immediateUpload="true"
                          onfileuploadcomplete="document.getElementById('contactForm:upload_wrapper_body').style.display='none';document.getElementById('contactForm:new_contacts_op').style.display='block';"
                >
      

       

      I checked the server log and can see no errors, but the entries are different between the working Chrome (in green) and the not working FF (in red)

       

       

      [BaseFilter.java.doFilter:472 ] DEBUG -Filter start request processing at 07/04/11 04:52  for uri:/tl2010-jsf/contacts.xhtml

      [BaseFilter.java.lookupCharacterEncoding:444] DEBUG - Incoming request has Content-Type header without characterencoding: multipart/form-data;boundary=----WebKitFormBoundaryB4NDeAvuYUcg5jRw

      [BaseFilter.java.handleRequest:284 ] DEBUG -Filter request output to XML

      [BaseXMLFilter.java.doXmlFilter:196 ] DEBUG -XML filter service start processing request

      [AjaxPhaseListener.java.beforePhase:102 ]DEBUG - Process before phase RESTORE_VIEW 1

      [AjaxPhaseListener.java.beforePhase:102 ]DEBUG - Process before phase RESTORE_VIEW 1

      [AjaxStateHolder.java.getInstance:66 ] DEBUG- Request for a view states holder instance

      [UIAjaxSupport.java.setParent:124 ] DEBUG -Called setParent for AjaxSupport component with parent :org.richfaces.component.html.HtmlInputText

      [UIAjaxSupport.java.setParent:136 ] DEBUG -Detect newly created component

       

       

       

      [BaseFilter.java.doFilter:472 ] DEBUG -Filter start request processing at 07/04/11 04:35  for uri:/tl2010-jsf/contacts.xhtml

      [BaseFilter.java.lookupCharacterEncoding:444] DEBUG - Incoming request has Content-Type header without characterencoding: multipart/form-data;boundary=---------------------------13543720171790481096732022262

      [BaseFilter.java.handleRequest:284 ] DEBUG -Filter request output to XML

      [BaseXMLFilter.java.doXmlFilter:196 ] DEBUG -XML filter service start processing request

      [AjaxPhaseListener.java.beforePhase:102 ]DEBUG - Process before phase RESTORE_VIEW 1

      [AjaxPhaseListener.java.beforePhase:102 ]DEBUG - Process before phase RESTORE_VIEW 1

      [AjaxPhaseListener.java.afterPhase:69 ] DEBUG- Process after phase RESTORE_VIEW 1

      [AjaxPhaseListener.java.afterPhase:69 ] DEBUG- Process after phase RESTORE_VIEW 1

      [AjaxPhaseListener.java.beforePhase:102 ]DEBUG - Process before phase RENDER_RESPONSE 6

      [AjaxPhaseListener.java.beforePhase:112 ]DEBUG - PhaseListener enter Before RenderView Phase with ViewId/contacts.xhtml and RenderKitId HTML_BASIC

      [AjaxPhaseListener.java.beforePhase:102 ]DEBUG - Process before phase RENDER_RESPONSE 6

      [AjaxPhaseListener.java.beforePhase:112 ]DEBUG - PhaseListener enter Before RenderView Phase with ViewId/contacts.xhtml and RenderKitId HTML_BASIC

      [AjaxViewHandler.java.processAjaxEvents:214 ]DEBUG - Process AJAX events to calculate areas.

      [UIAjaxSupport.java.setParent:124 ] DEBUG -Called setParent for AjaxSupport component with parent :org.richfaces.component.html.HtmlInputText