From 83ae19f5109801ca1332994fbf18c9c48d3bd79b Mon Sep 17 00:00:00 2001 From: ZXY101 Date: Sun, 1 Oct 2023 16:18:14 +0200 Subject: [PATCH] Fix uploading if period in folder name --- src/lib/upload/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {