MIME type of file returning empty in javascript on some machines

前端 未结 2 689
感情败类
感情败类 2021-01-04 22:37

I have a javascript snippet written which checks for the mime type of the files.

var type = this.files[0].type;

Code was running fine for a long

2条回答
  •  盖世英雄少女心
    2021-01-04 23:20

    I also have the same problem with csv files with my Angular 8 application. The problem is only on the machine where Excel is not installed, so the csv key in the registry HKEY_CLASSES_ROOT is missing, as said by money user up here.

提交回复
热议问题