diff --git a/src/lib/upload/index.ts b/src/lib/upload/index.ts index d0cfef8..9dd919a 100644 --- a/src/lib/upload/index.ts +++ b/src/lib/upload/index.ts @@ -31,7 +31,9 @@ export async function unzipManga(file: File) { function getDetails(file: File) { const { webkitRelativePath, name } = file - const [filename, ext] = name.split('.'); + const split = name.split('.'); + const ext = split.pop() + const filename = split.join('.'); let path = filename if (webkitRelativePath) {