PDA

View Full Version : inputType: file - reset field in IE



catapult
30 Sep 2010, 7:14 AM
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('');

Animal
30 Sep 2010, 7:29 AM
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.

catapult
30 Sep 2010, 7:32 AM
Thanks Animal. I'll play around with that.