var formdata = new FormData();
formdata.append("file", myBase64-image);
const imageDetail = {
body: formdata,
method: "POST",
headers: {
cognitoToken: text,
"Content-Type": "application/x-www-form-urlencoded",
}
};
fetch(
`https://api.production.cloudios.flowfact-prod.cloud/multimedia-service/items/schemas/${schema_name}/entities/${uniqId}?title=${title}`,
imageDetail
)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) =>
console.log("Image Uploading Error: ", error)
);
已经使用他们的 API 来创建联系人和资产。但是当我尝试通过 API 上传图片时,会出错吗?