From 5c238c5b93da17e4a5a2fa24b4573ed4399a9c7a Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:50:42 -0400 Subject: [PATCH] Yet more upload url problems --- functions/api/uploads/[[id]].ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()}`;