diff --git a/functions/api/uploads/[[id]].ts b/functions/api/uploads/[[id]].ts index 65adf1b..18c3b62 100644 --- a/functions/api/uploads/[[id]].ts +++ b/functions/api/uploads/[[id]].ts @@ -1,5 +1,5 @@ export async function onRequestGet(context: RequestContext) { - const attachment = context.params.id as string; + const attachment = (context.params.id as string[]).join("/"); const unsignedURL = `https://mediaproxy.carcrushers.cc/${attachment}?Expires=${( Math.round(Date.now() / 1000) + 1800 ).toString()}`;