diff --git a/api/v2/new.ts b/api/v2/new.ts index 0432770..1c27611 100644 --- a/api/v2/new.ts +++ b/api/v2/new.ts @@ -6,7 +6,7 @@ import { ensurePost, parseBody } from "./utils.ts"; export default async (req: Request) => { if (!ensurePost(req)) return null; - const body = await req.arrayBuffer(); + const body = new TextDecoder().decode(await req.arrayBuffer()); const fileURLs = JSON.parse(body); if (!Array.isArray(fileURLs) || fileURLs.length < 1) {