From 7c5e23fa7bb7d2dc8f40488a3a912da5b70a8539 Mon Sep 17 00:00:00 2001 From: Rahul K R Date: Thu, 8 Aug 2024 18:15:45 +0530 Subject: [PATCH] bug fix 1307 --- src/app/shared/components/bulk-upload/bulk-upload.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/shared/components/bulk-upload/bulk-upload.component.ts b/src/app/shared/components/bulk-upload/bulk-upload.component.ts index 42eb062f..3d23dcc7 100644 --- a/src/app/shared/components/bulk-upload/bulk-upload.component.ts +++ b/src/app/shared/components/bulk-upload/bulk-upload.component.ts @@ -30,7 +30,8 @@ async downloadCSV(){ async uploadCSV(event){ let file= event.target.files[0]; - if(file.type != 'text/csv'){ + const acceptableTypes = ['text/csv', 'appilication/vnd.ms-excel'] + if(!(acceptableTypes.includes(file.type))){ this.toast.showToast('PLEASE_UPLOAD_CSV_FILE', 'danger') event.target.value=''; }else{