Skip to content

Commit

Permalink
Merge pull request #557 from rahulramakrishnan3/release-3.1.0
Browse files Browse the repository at this point in the history
bug fix 1307
  • Loading branch information
Cafnanc authored Aug 8, 2024
2 parents 2183371 + 7c5e23f commit 8abf7cf
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 8abf7cf

Please sign in to comment.