Don't use the full url for attachment property
This commit is contained in:
parent
f86405438a
commit
30b384546d
@ -203,7 +203,7 @@ export async function onRequestPost(context: RequestContext) {
|
||||
|
||||
for (const urlResult of uploadUrlResults as PromiseFulfilledResult<string>[]) {
|
||||
uploadUrls.push(urlResult.value);
|
||||
attachments.push(urlResult.value.replace(/^t\//, ""));
|
||||
attachments.push(new URL(urlResult.value).pathname.replace(/^t\//, ""));
|
||||
}
|
||||
|
||||
await context.env.DATA.put(
|
||||
|
Loading…
x
Reference in New Issue
Block a user