({ CreateRecord : function(component, event, helper){ var files = event.getSource().get("v.files"); helper.readFile(component,helper,files[0]); }, processFileContent : function(component,event,helper){ helper.saveRecords(component,event,helper); }, cancel : function(component,event,helper){ component.set("v.showMain",true); } })