update finfo

This commit is contained in:
Rizky
2024-08-10 06:30:26 +07:00
parent 7816056529
commit 986ac4cb27
+2 -2
View File
@@ -21,9 +21,9 @@ export const _ = {
if (await file.exists()) {
const arr = (path.split("/").pop() || "").split("-");
const ext = arr.pop();
const ctype = mime.getType(path);
const ext = mime.getExtension(ctype || "");
const fname = arr.join("-") + "." + ext;
const ctype = mime.getType(fname);
res = new Response(
JSON.stringify({