How can we capture the event when a file is selected in an open dialogue box and the OK button is clicked in extjs? **Off topic, the field does not stretch from its normal width.
xtype: 'textfield',
fieldLabel: 'New (JPG or PNG only)',
labelSeparator: '',
name: 'newPic',
id:'newPic',
anchor:'100%',
inputType: 'file',
allowBlank: false,
When I click the browse button, the open dialogue box appears. I need to retrieve the filename when I click the open button on the dialogue box.
Any suggestions would be greatly appreciated.
Thank you.