diff --git a/src/routes/wish/_excelImport.svelte b/src/routes/wish/_excelImport.svelte index f799fdbd..56e59ea2 100644 --- a/src/routes/wish/_excelImport.svelte +++ b/src/routes/wish/_excelImport.svelte @@ -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); }); -