update finfo

This commit is contained in:
Rizky 2024-08-10 06:27:43 +07:00
parent 67c2a1e48d
commit 7816056529
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ export const _ = {
const file = Bun.file(path);
if (await file.exists()) {
const arr = path.split("-");
const arr = (path.split("/").pop() || "").split("-");
const ext = arr.pop();
const fname = arr.join("-") + "." + ext;
const ctype = mime.getType(fname);