There was an error while loading. Please reload this page.
1 parent 8458d87 commit 02276b4Copy full SHA for 02276b4
1 file changed
app/api/user/avatar/route.ts
@@ -12,7 +12,7 @@ const REMOVE_URL = "https://upload.cornellappdev.com/remove";
12
const APPDEV_BUCKET = "alumni-website";
13
14
async function uploadToAppDev(buffer: Buffer, filename: string): Promise<string> {
15
- const blob = new Blob([buffer], { type: "image/webp" });
+ const blob = new Blob([new Uint8Array(buffer)], { type: "image/webp" });
16
const form = new FormData();
17
form.append("bucket", APPDEV_BUCKET);
18
form.append("image", blob, filename);
0 commit comments