diff --git a/functions/api/reports/submit.ts b/functions/api/reports/submit.ts index eed12b3..0692a8d 100644 --- a/functions/api/reports/submit.ts +++ b/functions/api/reports/submit.ts @@ -188,7 +188,9 @@ export async function onRequestPost(context: RequestContext) { for (const urlResult of uploadUrlResults as PromiseFulfilledResult[]) { uploadUrls.push(urlResult.value); - let url = new URL(urlResult.value).searchParams.get("name") as string; + let url = ( + new URL(urlResult.value).searchParams.get("name") as string + ).replace(/^t\//, ""); attachments.push(url); }