Fix uploading if period in folder name

This commit is contained in:
ZXY101
2023-10-01 16:18:14 +02:00
parent 1fcb64b7fd
commit 83ae19f510

View File

@@ -31,7 +31,9 @@ export async function unzipManga(file: File) {
function getDetails(file: File) { function getDetails(file: File) {
const { webkitRelativePath, name } = 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 let path = filename
if (webkitRelativePath) { if (webkitRelativePath) {