-
18 Dec 2008 11:32 PM #11
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.
-
19 Dec 2008 6:51 AM #12
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.
-
23 Dec 2008 6:37 AM #13
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.
-
6 Jan 2009 11:27 AM #14
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
-
25 Jan 2009 11:27 PM #15
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!
-
16 Sep 2009 1:07 PM #16
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;
}
})
-
25 Feb 2010 9:00 AM #17
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
-
3 Mar 2010 3:32 AM #18
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); }
-
23 Jul 2010 7:37 AM #19
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?
-
7 Mar 2011 4:10 AM #20
Hello Condore,
Can you please tell me the solution to enable and disable the fileuploadfield?


Reply With Quote