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スローエラーを介して画像をアップロードしようとすると、何か考えがありますか?