i have a requirement of uploading a .CSV file and read them inside my component, i have gone through this blog but it has a .CSV file stored in a particular loaction, i want to upload the .CSV file and read them inside my component. How can i do it
Do we have any build in plugin which we can use? if not then how can we achieve this goal.
this is code which i have tried
view
<input type="file" name="File Upload" id="txtFileUpload"
(change)="changeListener($event)"
accept=".csv"/>
component
changeListener($event:Response): void {
debugger;
// i am not able to get the data in the CSV file
}
in the changeListener(), i am not able tom get the content of the .CSV file, can anyone help me on this?
thank you
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…