0
votes

Is there any way we can reset Filefield once submit form?

I tried

Form.reset() 

or

Ext.getCmp('fileupload').reset(); 

and nothing happened.

1

1 Answers

1
votes

I guess Form in your case has the form xtype. In that case you need tot get the actual form first, as otherwise you would call .reset() on the panel instead of the form:

Form.getForm().reset()