diff --git a/functions/api/avatars/index.js b/functions/api/avatars/index.js index 9856dab..ef1e7cb 100644 --- a/functions/api/avatars/index.js +++ b/functions/api/avatars/index.js @@ -35,8 +35,7 @@ export async function onRequestPut(context) { } // Upload the avatar to R2 - const fileExtension = fileTypeResult.ext; - const objectName = `avatars/${context.user.userId}.${fileExtension}`; + const objectName = `avatars/${context.user.userId}`; await env.MY_BUCKET.put(objectName, buffer); // Store the filename in D1