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{