Here's how I generate blob using url
async function getFile(url:string) { let response = await fetch(url); let data = await response.blob(); return new File([data], "test.png", { type: 'image/png' }); }
Here's the formdata
`
const form = new FormData(
I tried using Patch Method by passing userId in the request endpoint and now I'm getting this error - {
detail: 'Multipart form parse error - Invalid boundary in multipart: None'
}
Here's how I generate blob using url
async function getFile(url:string) { let response = await fetch(url); let data = await response.blob(); return new File([data], "test.png", { type: 'image/png' }); }
Here's the formdata ` const form = new FormData(here's the request to update avatar
const updateUser = await fetch(
https://api.chatengine.io/users/`, { method: "POST", headers: { "PRIVATE-KEY": process.env.CHAT_SECRET!,`
It says that user already exists