feature: file uploads and audio embedding

This commit is contained in:
Andy Burke 2025-08-20 11:48:16 -07:00
parent 2224e1abe0
commit 4c0a8bb700
7 changed files with 105 additions and 22 deletions

View file

@ -136,7 +136,7 @@
const body = new FormData();
body.append("file", avatar, encodeURIComponent(avatar.name));
const avatar_path = `/files/users/${user.id}/avatars/${avatar.name}`;
const avatar_path = `/files/users/${user.id}/avatars/${encodeURIComponent(avatar.name)}`;
const avatar_upload_response = await api.fetch(avatar_path, {
method: "PUT",