View Full Version : Problem with File Upload Textfiled

15 Dec 2011, 7:25 AM
Hi Friends,
for a J2EE Web project, I have to added a FileUploadField plugin for my file upload. Everything working fine in file upload but i need clean the text box after my file upload is complete. I tried to use Ext.getCmp('trans-upload-form-file').setText(""); like this. But this is not working for me. Please any one help me how to resolve this is error.

This is my fileupload coding.
xtype: 'fileuploadfield',
id : 'trans-upload-form-file',
width: 500,
flex: 1,
emptyText : '',
buttonCfg : {
text : 'Browse'
validator : function ( fileNames ) {
var currentPanel = Ext.getCmp('attachmentForm');
return currentPanel.validateFileUpload(fileNames);