kostysh / File-uploading-component-for-Sencha-Touch

Ext.Button based component for uploading files in Sencha Touch apps without page refresh
51 stars 26 forks source link

success is not getting fired #21

Open coup opened 10 years ago

coup commented 10 years ago

I have a following code but when my server returns success:true in json

success event is not getting fired

{

                        xtype: 'fileupload',
                        id:'noUpload',
                        width:100,
                        height:40,
                        margin:'0 10 10 10',
                        url: myurl,
                        success:function(){

                            alert('success');

                        },
                        failure:function(){

                            alert('fail');

                        }

                }