3 Replies Latest reply on Oct 29, 2009 10:21 AM by ilya_shaikovsky

    File Upload Issue in IE 8

      We are deploying with:

      jdk 1.6.0_14
      JBoss 4.3_CP04
      Richfaces 3.3.1

      The file upload component works well in most browsers we test. However, compatibility mode is required when using the file upload component in IE 8. When not in compatibility mode, the following error is present and the "Attach" button is disabled:

      Webpage error details

      User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
      Timestamp: Wed, 28 Oct 2009 18:42:43 UTC

      Message: Invalid argument.
      Line: 2
      Char: 7206
      Code: 0
      URI: http://qa.vetconnect.com/telemedicine/a4j/g/3_3_1.GAorg/richfaces/renderkit/html/js/swfobject.js.jsf



      Here is the file upload tag configuration we are using:

      <rich:fileUpload
      id="teleRexxUpload"
      noDuplicate="true"
      fileUploadListener="#{fileUploadListener.listener}"
      maxFilesQuantity="999"
      immediateUpload="false"
      acceptedTypes="our types list"
      listHeight="auto"
      listWidth="537"
      onadd="fileAdded();"
      ontyperejected="postTypeRejected(event);"
      onupload="postPreUploadFileCount(event);"
      onerror="postClientUploadErrorEvent(event);"
      onclick="manageSendButton();"
      onclear="manageSendButton();"
      addControlLabel="Attach"
      cancelEntryControlLabel="Remove"
      autoclear="true"
      allowFlash="auto" >

      <f:facet name="label">
      <h:outputText value="{_KB}KB of {KB}KB uploaded --- {mm}:{ss}" />
      </f:facet>

      <a4j:support
      event="onuploadcomplete"
      oncomplete="uploadComplete();"
      reRender="idShoppingCartPanel" />

      </rich:fileUpload>