1. #21
    aaaee2
    Guest

    Default


    Guys, I update my ExtJS copy to 2.2.0 (rev 2547), but still cant upload files on my desktop application getting error:

    ext-all-debug.js (line 6868), syntax error [foofile] => Array\n

    Please help me. I have FF 3.0.4 installed.

    Here is the code:
    Code:
    openFooImportWindow = function (desktop, barName, barId) {
        var win = desktop.getWindow('foo-import-win-' + barId);
        var form = new Ext.form.FormPanel({
            baseCls: 'x-plain',
            layout: 'fit',
            fileUpload: true,
            items: [{
                name: 'foofile',
                fieldLabel: 'Foo file:',
                xtype: 'fileuploadfield'
            }]
        });
    
        if (!win) {
            win = desktop.createWindow({
                id: 'foo-import-win-' + barId,
                title: barName + ' - Foo Import',
                width: 400,
                height: 116,
                iconCls: 'import',
                resizable: false,
                maximizable: false,
                minimizable: false,
                layout: 'fit',
                plain: true,
                bodyStyle: 'padding:10px;',
                buttonAlign: 'center',
                modal: true,
                items: form,
                buttons: [
                    {
                        text: 'Import',
                        handler: function(){
                            if(form.getForm().isValid()){
                                form.getForm().submit({
                                    url: 'import_ci.php',
                                    waitMsg: 'Uploading file...',
                                    success: function(form, o){
                                        msg('Success', 'Processed file "'+o.result.file+'" on the server');
                                    }
                                });
                            }
                        }
                    },
                    {text: 'Cancel', handler: function() { win.close(); } }
                ]
            });
        }
        win.show();
    }
    Animal, I'm sorry, but Fiddler does not see any traffic on me

    BTW an example lib/ext/examples/form/file-upload.html works fine ...

  2. #22
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,499
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Set break on all errors, and see what's what.

  3. #23
    aaaee2
    Guest

    Default


    Quote Originally Posted by Animal View Post
    Set break on all errors, and see what's what.
    Mm.. sorry, cant understand. Are you mean to setting some kind of break points to script?

  4. #24
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    86
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    It looks like your file is submitted to import_ci.php, but the server returned invalid JSON response.

  5. #25
    aaaee2
    Guest

    Default


    Quote Originally Posted by Condor View Post
    It looks like your file is submitted to import_ci.php, but the server returned invalid JSON response.
    OMG! Yes, it is. LOL
    import_ci.php
    Code:
    <?php
    print_r($_FILES);
    exit();
    // ...
    // ... the true script code bellow
    // ...
    ?>
    I've added this two lines for the purpose of debugging when 2.1 was the lastest and forgot to remove. Now all ok.
    Thank you very much for pointing.

  6. #26
    Ext User
    Join Date
    Nov 2010
    Posts
    2
    Vote Rating
    0
    jiajiafucs is on a distinguished road

      0  

    Default i find it

    i find it


    xtype:'fileuploadfield',
    buttonText:'&nbsp;浏&nbsp;&nbsp;览&nbsp;&nbsp;',
    fieldLabel:'文件位置',
    height:20,
    name:'file',
    anchor:'100%'}]

    it can use!

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