Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    UploadItem multiple files bug Internet Explorer

    Hi, there is a simple code for file selection to upload. I cannot select multiple files in Internet Explorer using UploadItem. It works OK in Firefox. I would like use then the more sophisticated use case "Background upload without the Smart GWT Server" in IE too. It works OK for multiple selection in FF. Could you please check it in IE?

    Code:
    import com.smartgwt.client.widgets.form.DynamicForm;
    import com.smartgwt.client.widgets.form.fields.UploadItem;
    import com.smartgwt.client.widgets.layout.VLayout;
    
    public class MyPanel extends VLayout {
        public MyPanel() {
            UploadItem uploadItem = new UploadItem("myitem", "Upload");
            DynamicForm form = new DynamicForm();
            form.setItems(uploadItem);
            addMember(form);
        }
    }

    #2
    You have no call to setMultiple() in your code, so it's expected that this control would not allow multiple selections.

    Comment


      #3
      uploadItem.setMultiple(true) does not help. Please try it in IE.

      Code:
      [B]import[/B] com.smartgwt.client.widgets.form.DynamicForm;
      [B]import[/B] com.smartgwt.client.widgets.form.fields.UploadItem;
      [B]import[/B] com.smartgwt.client.widgets.layout.VLayout;
       
      [B]public[/B] [B]class[/B] MyPanel [B]extends[/B] VLayout {
            [B]public[/B] MyPanel() {
                  UploadItem uploadItem = [B]new[/B] UploadItem("myitem", "Upload");
                  uploadItem.setMultiple([B]true[/B]);
                  DynamicForm form = [B]new[/B] DynamicForm();
                  form.setItems(uploadItem);
                  addMember(form);
            }
      }

      Comment


        #4
        This works fine in IE. With IE's built-in developer tools you can also see that the generated markup is what it should be.

        Most likely, you have some kind of browser extension installed which is interfering with the normal function of the browser.

        That, or you are running an unusual version of IE (or perhaps not IE at all - Edge maybe?) or an old or unpatched version of our software. Please remember, it is a requirement when reporting an issue to list both the exact version of our software that you are using, as well as the exact version of the browser(s) where you have an issue.

        Comment


          #5
          GWT Version : 2.5.1
          SmartGWT Version : 4.1p (Sat Feb 07 09:53:00 GMT+100 2015) //Found this IE bug
          SmartGWT Version : 4.1p (Thu Nov 26 05:51:00 GMT+100 2015) //Reproduced too
          Internet Explorer 11.0.9600.18098
          Firefox ESR 24.8.1 //OK

          Is it a supported version?
          Last edited by bnagwt; 2 Dec 2015, 23:58.

          Comment


            #6
            That explains why we couldn't reproduce it. We tested 5.0 as this is the only version that officially supports IE11. 4.1 generally won't crash outright, but there may be minor functional or cosmetic issues which will not be corrected, as IE11's release post-dates 4.1's release, and newer versions are available, which you should migrate to if you need full IE11 support.

            Comment


              #7
              Thank you for the detailed information and tips before. I have analyzed the index.html and found the X-UA-Compatible tag. If I comment it, the multiple selection in IE works OK. But we need this settings remaining uncommented for other reason. Having this additional info is there any support yet for this situation in 4.1?

              Code:
              <!DOCTYPE html>
              <html>
              <head>
              <meta http-equiv="X-UA-Compatible" content="IE=9" />
              ...

              Comment


                #8
                In general, we don't support use of that tag (see FAQ) - the combination of the HTML5 DOCTYPE and telling the browser to emulate IE9 leads to a kind of in-between mode with a mixture of bugs from two different versions, as well as novel bugs that arise from the interaction of bugs that would not otherwise have been active at the same time. There's no realistic way to support all the possible combinations that result.

                Comment


                  #9
                  Thank you for the details.

                  Comment

                  Working...
                  X