1. #1
    Ext User
    Join Date
    Sep 2008
    Location
    UK
    Posts
    31
    Vote Rating
    0
    pepez is on a distinguished road

      0  

    Default [CLOSED] 1.2.4 FileUploadField on IE and duplicate name

    [CLOSED] 1.2.4 FileUploadField on IE and duplicate name


    The request is parsed using org.apache.commons.fileupload.servlet.ServletFileUpload parseRequest.

    On IE 6 & IE 7 file upload request contains two fields with same name for FileUploadField. On FF3 or Safari the upload works fine and no duplicate elements are found in the request.

  2. #2
    Ext User
    Join Date
    Sep 2008
    Location
    UK
    Posts
    31
    Vote Rating
    0
    pepez is on a distinguished road

      0  

    Default


    Anyone else with the same problem? Or am I using file upload somehow in a wrong way?

  3. #3
    Ext User
    Join Date
    Nov 2008
    Posts
    36
    Vote Rating
    0
    monzonj is on a distinguished road

      0  

    Default


    I don't have it, and I use the upload widget a lot. I use IE6 and I don't have any trouble so far.

    If you don't put some source code so I can compare I can't tell you what's wrong. I use common-fileupload.jar in the server too.

  4. #4
    Ext User
    Join Date
    Sep 2008
    Location
    UK
    Posts
    31
    Vote Rating
    0
    pepez is on a distinguished road

      0  

    Default


    test case:

    Code:
    package ccc.contentcreator.client;
    
    import com.extjs.gxt.ui.client.event.ButtonEvent;
    import com.extjs.gxt.ui.client.event.SelectionListener;
    import com.extjs.gxt.ui.client.widget.Window;
    import com.extjs.gxt.ui.client.widget.button.Button;
    import com.extjs.gxt.ui.client.widget.form.FileUploadField;
    import com.extjs.gxt.ui.client.widget.form.FormPanel;
    import com.extjs.gxt.ui.client.widget.form.TextField;
    import com.extjs.gxt.ui.client.widget.layout.FitLayout;
    import com.extjs.gxt.ui.client.widget.layout.FormData;
    import com.google.gwt.core.client.EntryPoint;
    
    
    /**
     * Entry point classes define <code>onModuleLoad()</code>.
     */
    public final class ContentCreator implements EntryPoint {
    
        private final FormPanel panel = new FormPanel();
    
        public void onModuleLoad() {
    
            Window w = new Window();
            w.setWidth(640);
            w.setHeight(480);
            w.setLayout(new FitLayout());
            w.setBodyStyle("backgroundColor: white;");
            w.setMaximizable(true);
            w.show();
    
            panel.setAction("upload");
            panel.setEncoding(FormPanel.Encoding.MULTIPART);
            panel.setMethod(FormPanel.Method.POST);
    
            TextField<String>   description = new TextField<String>();
            description.setName("description");
            description.setFieldLabel("description");
            panel.add(description);
    
            FileUploadField     file = new FileUploadField();
            file.setName("fileField");
            file.setFieldLabel("file");
            panel.add(file);
    
            panel.addButton(new Button(
                "submit",
                saveAction()));
    
            w.add(panel);
    
        }
        private SelectionListener<ButtonEvent> saveAction() {
            return new SelectionListener<ButtonEvent>() {
                @Override
                public void componentSelected(final ButtonEvent ce) {
                    panel.submit();
                }
            };
        }
    }

  5. #5
    Ext User
    Join Date
    Sep 2008
    Location
    UK
    Posts
    31
    Vote Rating
    0
    pepez is on a distinguished road

      0  

    Default


    Ah, nothing to do with GXT. Our file handling was not handling form properly.

    Calling org.apache.commons.fileupload.FileItem.isFormField() helps...

  6. #6
    Ext User
    Join Date
    Oct 2009
    Posts
    9
    Vote Rating
    0
    lostistn is on a distinguished road

      0  

    Default


    Quote Originally Posted by pepez View Post
    The request is parsed using org.apache.commons.fileupload.servlet.ServletFileUpload parseRequest.

    On IE 6 & IE 7 file upload request contains two fields with same name for FileUploadField. On FF3 or Safari the upload works fine and no duplicate elements are found in the request.
    the same problem happens to me, does anyone know how to solve this?

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi