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) { function checkFile(file) {
console.log(file.type); 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); readExcel(file);
} else { } else {
pushToast($t('wish.excel.errorInvalidFile'), 'error'); pushToast($t('wish.excel.errorInvalidFile'), 'error');
@ -349,7 +352,6 @@
}; };
reader.readAsArrayBuffer(file); reader.readAsArrayBuffer(file);
}); });
</script> </script>
<div> <div>
@ -434,5 +436,4 @@
@apply text-background; @apply text-background;
} }
} }
</style> </style>