upload base64 fix

This commit is contained in:
2025-11-10 11:24:50 +08:00
parent f79629e97e
commit 9c045f32ea
4 changed files with 53 additions and 5 deletions

3
x.ts
View File

@@ -10,7 +10,8 @@ const base64Data = fileBuffer.toString("base64");
// 3⃣ Buat payload JSON
const payload = {
file: base64Data,
data: base64Data,
mimetype: "image/png"
};
// 4⃣ Kirim ke server pakai fetch