PDA

View Full Version : Ext js 4: How to sripe path from the filefield inorder to retrieve filename ?



chandran09
23 Nov 2011, 1:41 AM
Ext js 4: How to sripe path from the filefield inorder to retrieve filename ?








Thanks in advance :)

mitchellsimoens
23 Nov 2011, 7:03 AM
All you have to do is execute getValue on the field instance to get the value that is displayed. If you just want the filename and not the entire path then just split that string by '\' and get the last item.