Skip to content

Commit

Permalink
bug fix 1307
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul K R committed Aug 8, 2024
1 parent e64cdfc commit 7c5e23f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 7c5e23f

Please sign in to comment.