Forum /
Ext JS Community Forums 3.x /
Ext 3.x: Help & Discussion /
inputType: file - reset field in IE
inputType: file - reset field in IE
Hi all,
I have a form with a textfield set with "inputType: file". Everything works fine when I submit the form, the file uploads lovelly. When I get the response back I want to reset the field to allow uploading another file. I don't seem to be able to do this in IE. Other browsers seem to work correctly.
I have tried:
getForm(); form.reset();
Ext.getCmp('uploadfile').reset();
Ext.getCmp('uploadfile').setValue('');
Sencha - Ext JS Dev Team
I have an file upload class. The way I implement reset is to remove the <input> element and insert a new one named the same in its place.
Thanks Animal. I'll play around with that.
Similar Threads
By programmer@blore in forum Ext 1.x: Help & Discussion
Replies: 10
Last Post: 25 May 2012, 12:43 AM
By ScytheV in forum Ext 2.x: Help & Discussion
Replies: 5
Last Post: 3 Feb 2010, 3:46 AM
By WutongDeath in forum Ext 2.x: Help & Discussion
Replies: 0
Last Post: 19 Jul 2008, 9:44 PM
By boriscy in forum Ext 1.x: Help & Discussion
Replies: 1
Last Post: 9 Jul 2008, 6:00 AM
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us