Results 1 to 2 of 2

Thread: Extjs 6.5 File upload form set Success to TRUE even if return SUCCESS is FALSE.

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Oct 2007
    Posts
    52

    Default Extjs 6.5 File upload form set Success to TRUE even if return SUCCESS is FALSE.

    While uploading a test image and some form data. I purposely set sent missing data to force a failure on the server and return SUCCESS:FALSE.
    Supposedly a message box should pop-up since SUCCESS was set to FALSE but instead executes the SUCCESS:TRUE code.

    Image attached on the logs from firefox. One from the server return response and the other from the form response in the console log.
    02.png01.jpg

    PHP Code:
    if( form.validate() ){
                            
    showLoadMaskwindow );
                            
    form.submit({

                                
    success: function(formaction) {
                                    
    console.logaction );

                                    
    hideLoadMask(window);
                                    if ( 
    action.success === true ) {

                                        if ( 
    callback !== undefined ) {
                                            
    callback();
                                        }
                                        
    window.destroy();
                                    } else {
                                        
    Ext.Msg.show({
                                            
    title'Error!',
                                            
    messageaction.reason,
                                            
    width400,
                                            
    buttons: [{
                                                
    text'Ok',
                                                
    style:'margin-right:10px;',
                                                
    handler: function() {
                                                    
    Ext.Msg.hide();
                                                }
                                            }]
                                        });

                                    }


                                },
                                
    failure: function(formresponse) {
                                    
    console.logresponse );
                                    
    hideLoadMask(window);
                                    if ( 
    response.success === false ) {

                                        
    Ext.Msg.show({
                                            
    title'Error!',
                                            
    messageresponse.reason,
                                            
    width400,
                                            
    buttons: [{
                                                
    text'Ok',
                                                
    style:'margin-right:10px;',
                                                
    handler: function() {
                                                    
    Ext.Msg.hide();
                                                }
                                            }]
                                        });

                                    }


                                }

                            });
                        } 

  2. #2

    Default

    I'm getting the same problem on 6.2.1. Have you found something to solve this problem?

Similar Threads

  1. Replies: 9
    Last Post: 21 Sep 2011, 1:37 PM
  2. HOWTO EXTjs reads success : true or false?
    By andredecotia in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 29 Nov 2010, 3:59 AM
  3. [SOLVED]Upload form json reports false success
    By poppabear in forum Ext 2.x: Help & Discussion
    Replies: 13
    Last Post: 30 Mar 2009, 10:02 PM
  4. error on 'success:false' form return
    By Mitaka in forum Ext 2.x: Help & Discussion
    Replies: 10
    Last Post: 17 Feb 2009, 8:37 AM
  5. form, json: success: true/false
    By bartvde in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 8 Nov 2007, 12:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •