Skip to content

Commit

Permalink
Merge pull request #6 from geolonia/fix-for-windows
Browse files Browse the repository at this point in the history
Zip が開けないバグ修正
  • Loading branch information
Kamata, Ryo authored Dec 7, 2023
2 parents 89e73c7 + 506eb32 commit 52ceed3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Uploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@ const Component = (props: Props) => {
reader.onload = async () => {
let data = ''
let filename = ''

if ('application/zip' === file.type) {
if (
'application/zip' === file.type ||
'application/x-zip-compressed' === file.type
) {
const entry = (await (new ZipReader(new BlobReader(file))).getEntries({})).shift();
if (entry) {
data = await entry.getData(new TextWriter())
Expand Down

0 comments on commit 52ceed3

Please sign in to comment.