Check other excel mime type

This commit is contained in:
Made Baruna 2021-07-06 20:14:45 +07:00
parent 050eef3741
commit e476be5e41
No known key found for this signature in database
GPG key ID: 5AA5DA16AA5DCEAD

View file

@ -300,7 +300,10 @@
function checkFile(file) {
console.log(file.type);
if (file.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') {
if (
file.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' ||
file.type === 'application/wps-office.xlsx'
) {
readExcel(file);
} else {
pushToast($t('wish.excel.errorInvalidFile'), 'error');
@ -349,7 +352,6 @@
};
reader.readAsArrayBuffer(file);
});
</script>
<div>
@ -434,5 +436,4 @@
@apply text-background;
}
}
</style>