fix: Append file upload w/ mp3
This commit is contained in:
parent
388b0605dd
commit
5ec61d6dd9
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue