1. #1
    Sencha Premium Member danguba's Avatar
    Join Date
    Feb 2009
    Location
    Kragujevac, Serbia
    Posts
    367
    Vote Rating
    5
    danguba is on a distinguished road

      0  

    Thumbs up [Workaround] IE7 upload problem

    [Workaround] IE7 upload problem


    Hello,
    I have problem with Ajax Upload in ExJS. It works fine in Firefox 3.0 but when I try to do same in IE7 it looks like upload never ends. I used Fiddler to catch response and file is uploaded. Fiddler also shows me that server is sending success response but from some reason ExtJs is not catching that so it never enter success function. I’m pretty confused because this work with no problem in Firefox. Here is part of problematic code:

    Code:
    fileUploadPost : function() {
    
            //some code that is not important//
    
            this.cardPanel.items.items[3].getForm().submit({
    
                method : 'POST',
                params : {
                    'jsonData' : jsonData,
                    'jsonTaskData' : jsonTaskData
                },
                waitTitle : 'Connecting',
                waitMsg : 'Sending data...',
                scope : this,
                success : function(form, action) {
                    var submissionPostResponse = Ext
                            .decode(action.response.responseText);
                    if (submissionPostResponse.submissionTicket) {
                        this.submissionTicket = submissionPostResponse.submissionTicket.ticketId;
                    }
                },
                failure : function(form, action) {
                    // TODO Handle form failure
                }
            });
        }
    Last edited by danguba; 20 Feb 2009 at 7:29 AM. Reason: Workaround found
    All Best
    ---
    Željko Mitrović
    http://skitanja.blogspot.com/

    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." Martin Golding

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    80
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    are you specifying fileUploadTrue in the form panel?

  3. #3
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    80
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    BTW, the term AJAX upload is incorrect. To do an "AJAX- like" file upload, a hidden iframe needs to be created to perform the upload.

    could it be that your IE7 security settings are preventing this?

  4. #4
    Sencha Premium Member danguba's Avatar
    Join Date
    Feb 2009
    Location
    Kragujevac, Serbia
    Posts
    367
    Vote Rating
    5
    danguba is on a distinguished road

      0  

    Default


    Hi,
    tnx for quick response. I'm specifying fileUploadTrue in form panel so I guess that's not source of problem.

    I tried to use File tree uploader (http:\\filetree.extjs.eu). I implemented it in my code and change only server url and parameters. It was the same.

    When I try to change IE7 security the only thing diferent is that download popup apears

    I'm using Java server.
    All Best
    ---
    Željko Mitrović
    http://skitanja.blogspot.com/

    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." Martin Golding

  5. #5
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    80
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    using the same server side code, can you get regular form submission to work?

  6. #6
    Sencha Premium Member danguba's Avatar
    Join Date
    Feb 2009
    Location
    Kragujevac, Serbia
    Posts
    367
    Vote Rating
    5
    danguba is on a distinguished road

      0  

    Default


    Hi,
    I managed to get to success. Changing response header on server side helped. By adding connection:close and content-encoding:gzip to header IE now enters success. However now I cannot decode response.responsetext because it is empty even thou server send it correctly.
    All Best
    ---
    Željko Mitrović
    http://skitanja.blogspot.com/

    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." Martin Golding

  7. #7
    Sencha Premium Member danguba's Avatar
    Join Date
    Feb 2009
    Location
    Kragujevac, Serbia
    Posts
    367
    Vote Rating
    5
    danguba is on a distinguished road

      0  

    Default


    Workaround: Two calls to server one for upload and the other for response
    All Best
    ---
    Željko Mitrović
    http://skitanja.blogspot.com/

    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." Martin Golding

Thread Participants: 1

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..."