Skip to content

Commit 02276b4

Browse files
committed
Fix build
1 parent 8458d87 commit 02276b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/api/user/avatar/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const REMOVE_URL = "https://upload.cornellappdev.com/remove";
1212
const APPDEV_BUCKET = "alumni-website";
1313

1414
async function uploadToAppDev(buffer: Buffer, filename: string): Promise<string> {
15-
const blob = new Blob([buffer], { type: "image/webp" });
15+
const blob = new Blob([new Uint8Array(buffer)], { type: "image/webp" });
1616
const form = new FormData();
1717
form.append("bucket", APPDEV_BUCKET);
1818
form.append("image", blob, filename);

0 commit comments

Comments
 (0)