fix: Append file upload w/ mp3

This commit is contained in:
Roman Godmaire 2023-11-19 17:19:03 -05:00
parent 388b0605dd
commit 5ec61d6dd9

View file

@ -20,7 +20,7 @@ export const actions: Actions = {
const title = formData.get('title') as string; const title = formData.get('title') as string;
const file = formData.get('file') as File; 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())); const err = await objectStorage.putObject(objectKey, new Uint8Array(await file.arrayBuffer()));
if (err) { if (err) {