Is there some way of getting the file name from the filefield widget in Extjs?
I could use the value below but this gives me a c:\fakepath\blah string. And in Internet Explorer its different again.
xtype: 'filefield',
itemId: 'fileupload-field',
listeners: {
change: function (fld, value) {
var fuf = Ext.ComponentQuery.query("#fileupload-field");
//??
}
}
Rather than perform all this string manipulation (which is harder than it seems since the path is not character escaped) to get to the filename, I would expect that the filefield component would have a method or attribute which just gives me the filename
However looking at the API I do not see anything that can help me.