1. #11
    Ext User
    Join Date
    Sep 2008
    Posts
    10
    Vote Rating
    0
    alladin-it is on a distinguished road

      0  

    Default Don't understand your post really

    Don't understand your post really


    Hi pdchapin! I do not understand your post really, but sure you can have more than one fileupload in one form.

  2. #12
    Sencha User
    Join Date
    May 2008
    Posts
    70
    Vote Rating
    0
    pdchapin is on a distinguished road

      0  

    Default Clarification

    Clarification


    I have a form that includes a file upload. I want the user to be able to fill out the form multiple times. The problem is that the second time they see the form, they have the data from the previous entry. Everything I've tried to clean out the filename field results in the upload failing. (Actually, it says it's successful, but the script that's suppose to put the file in the proper place isn't finding anything). I can clean out the other fields with no apparent problem, and the filename field appears to have been emptied. On the other hand, if I leave the old filename there and let the user replace it, it works fine.

    I'm not actually using the FileUploadField, just a simple textfield with an inputType of 'file' which has been working fine for me. The problem, however, sounds related to this issue so my question really is whether this is, in fact, the same problem so I can stop trying to find a simple solution.

    At the moment I'm thinking of destroying the existing form and rebuilding it again.

  3. #13
    Sencha User
    Join Date
    May 2008
    Posts
    70
    Vote Rating
    0
    pdchapin is on a distinguished road

      0  

    Default Update

    Update


    It appears that the problem lies with the upload itself and is unrelated to clearing the previous form.

    It also appears that the problem is probably Vista related and/or Vista/browser rather than being Extjs related. Restarting the system clears the problem up, at least for awhile. I suspect that the upload process isn't finishing correctly and tying up some resource the next upload needs. The problem isn't consistent and it's not clear what starts it, but once started, uploading is dead.

    God, I hate Vista. I'm ready to switch to a Mac.

  4. #14
    Ext User
    Join Date
    Apr 2008
    Posts
    57
    Vote Rating
    0
    azbok is on a distinguished road

      0  

    Default I also fixed this problem too

    I also fixed this problem too


    Hey

    Condor kindly posted a response to my thread of also fixing this problem. Here's my solution, although I haven't tested it in various browsers, just FF3.

    http://extjs.com/forum/showthread.php?t=56525

  5. #15
    Ext User
    Join Date
    Jan 2009
    Posts
    1
    Vote Rating
    0
    BossMD is on a distinguished road

      0  

    Thumbs up


    I just wanted to point out that the reset issue was not the only bug solved in this thread. I ended up here trying to figure out why the browse button was not disabling properly.

    Thanks for the fixes!

  6. #16
    Sencha User
    Join Date
    Sep 2008
    Posts
    16
    Vote Rating
    0
    dajester2008 is on a distinguished road

      0  

    Post Quick solution

    Quick solution


    I found this worked also as a possible solution to the problem:

    PHP Code:
    Ext.override(Ext.form.BasicForm,{
       
    reset:function(){
          
    this.el.dom.reset();            // Added this line
          
    this.items.each(function(f){
             
    f.reset();
          });
          return 
    this;
       }
    }) 

  7. #17
    Ext JS Premium Member
    Join Date
    Jan 2008
    Location
    España
    Posts
    215
    Vote Rating
    0
    vizcano is on a distinguished road

      0  

    Default


    Hi

    This work perfect to me but from quality assurance departament have detected a little bug, during the reset process the button changes as the images attached. Have anyone an idea to solve it?

    Thank u so much
    Attached Images

  8. #18
    Ext JS Premium Member
    Join Date
    Jan 2008
    Location
    España
    Posts
    215
    Vote Rating
    0
    vizcano is on a distinguished road

      0  

    Default


    Finally i find a solution, it may be not the best but it works

    Code:
    reset : function(){
    		this.fileInput.removeAllListeners();
    		this.fileInput.remove();
    		this.createFileInput();
    		var btnCfg = Ext.applyIf(this.buttonCfg || {}, {
    			text: this.buttonText
    		});
    		this.button = new Ext.Button(Ext.apply(btnCfg, {
    			renderTo: this.wrap,
    			cls: 'x-form-file-btn' + (btnCfg.iconCls ? ' x-btn-icon' : '')
    		}));
    		this.addFileListener();
    		Ext.form.FileUploadField.superclass.reset.call(this);
    	}

  9. #19
    Ext User
    Join Date
    Jun 2010
    Posts
    1
    Vote Rating
    0
    vivekanand30 is on a distinguished road

      0  

    Default how to get the FileUploadValue for validation

    how to get the FileUploadValue for validation


    if i try to get the value using fileUplodaField.getValue(),i am getting the error message like Object doest not support the property.
    Is there any way to do it.
    Any help would be Appreciated?

  10. #20
    Sencha User
    Join Date
    Dec 2010
    Posts
    8
    Vote Rating
    0
    pradippadwal is on a distinguished road

      0  

    Default


    Hello Condore,

    Can you please tell me the solution to enable and disable the fileuploadfield?

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar