JS Input Validasi Jenis File Excel

let extension = file.name.split('.').pop();
if(extension !== 'xlsx')
{
  	...
}
GutoTrosla