Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88868

Need MIME file type condition for excel/spreadsheet?

$
0
0

2nd column values contains file MIME type.

enter image description here I need to add a condition, that would be true for all the above file MIME type. Basically, need a condition for all excel files.

This is what I tried,

const isXlsFile = !!(
      file.mimetype &&
      ~file.mimetype.indexOf('spreadsheetml.sheet')

Viewing all articles
Browse latest Browse all 88868


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>