From 5ec61d6dd9633575bbd3c91af573cc31b1bc2b09 Mon Sep 17 00:00:00 2001 From: Roman Godmaire Date: Sun, 19 Nov 2023 17:19:03 -0500 Subject: [PATCH] fix: Append file upload w/ mp3 --- src/routes/upload/+page.server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/upload/+page.server.ts b/src/routes/upload/+page.server.ts index 5eb911f..6fca1d9 100644 --- a/src/routes/upload/+page.server.ts +++ b/src/routes/upload/+page.server.ts @@ -20,7 +20,7 @@ export const actions: Actions = { const title = formData.get('title') as string; const file = formData.get('file') as File; - const objectKey = uuidv4(); + const objectKey = `${uuidv4()}.mp3`; const err = await objectStorage.putObject(objectKey, new Uint8Array(await file.arrayBuffer())); if (err) {