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) {