Paimon.moe exported Excel file has different mimetype than it expects while importing the files
See original GitHub issueIn the process of trying to convert my Wishes from Genshin-wishes into Paimon.moe I noticed that Paimon.moe can’t seem to import its own exported Excel files, due to it restricting imports to a different mimetype than it exports to.
Environment Tested
- Chrome 91, Manjaro Linux
- Chrome 91, Android 11
- Chrome 90, Android 10
Steps to Reproduce
The following is done on a fresh account for reproducibility.
- Auto-import some wishes into Paimon.moe
- Export all the wishes from settings
- Try to import that same .xlsx into Paimon.moe by either dragging an exported file back into the import interface, or selecting the file manually
Expected results
The exported data will be imported into the active Paimon.moe account.
Encountered Issue
As soon as any file is dropped in or selected Paimon.moe pops up a toast saying invalid Excel file
. This includes perfectly valid readable Excel files exported out of Paimon.moe merely seconds ago.
Additional Information
It seems the Excel file exported from Paimon.moe has the mimetype marked as application/wps-office.xlsx
instead of either application/vnd.ms-excel
or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
the latter of which the code actually checks for. The file actually exported by Paimon.moe and ExcelJS is most definitely not set to the OpenXML mimetype at all, which might an issue with ExcelJS, which I am not familiar with.
On this note, may I partly second issue #81 in that the exported file could be far simpler and not to mention smaller than an Excel file with a bunch of derived values and embedded images? A simple CSV would be so much less hassle, and Excel can open them anyway.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (3 by maintainers)
I think there is still an issue. I couldn’t upload the CSV file from genshin-wishes to paimon.moe because there was a prompt saying “Invalid excel file”. I am on Android 11, Chrome version 92.0.4515.166. The CSV file has been attached. 700837690_wishes.csv
Nevermind, I just checked and weirdly enough it was something with my browser 😃 Everything works fine in another one and gives “unknown type” error if there’s unknown items.