voltmx.io.FileSystem.browse

In the voltmx.io.FileSystem.browse command, how do I get the name of the selected file?

kony.io.FileSystem.browse(config, this.selectedFileCallback);
selectedFileCallback(res) {
this.parseFiles(res, 0);
},
parseFiles: function(res,i){
try{
let me = this;
var reader = newFileReader();
FILE_ID.push(uniqueID.call(this));
FILE_DETAILS.push(res.target.files[i]['name'].split('.'));
reader.readAsDataURL(res.target.files[i]);
reader.onload = function() {
FILE_DATA.push(reader.result.split(',')[1]);
me.view.rtFiles.text = me.view.rtFiles.text + '<br>' + FILE_DETAILS[i][0] + '.' + FILE_DETAILS[i][1];
i = i + 1;
if(i >= res.target.files.length) {
if(addSubRecordFlow){
me.uploadToBlob(0);
}else{
return me.view.flxBackground.setVisibility(true);
}
}
me.parseFiles(res, i);
};
reader.onerror = function(error) {
alert('Error: ', error);
};
}catch(e){
kony.print("Exception in parseFiles method:"+e);
}
},
res.target.files[i]['name'] in parseFiles method helps to get the attached file name.