最近の検索
最近の検索はありません

Rocky Tennoh
参加日2024年11月18日
·
前回のアクティビティ2024年11月18日
フォロー中
0
フォロワー
0
合計アクティビティ
2
投票
0
サブスクリプション
1
アクティビティの概要
バッジ
記事
投稿
コミュニティへのコメント
記事へのコメント
アクティビティの概要
さんの最近のアクティビティ Rocky Tennoh
Rocky Tennohさんがコメントを作成しました:
コミュニティのコメント Developer - Zendesk Apps Framework (ZAF)
hello @Tipene Hughes sir
const file = new File([blobData], mediaData.fileName, {
type: blobData.type,
});
const formData = new FormData();
formData.append("media", file);
formData.append("title", file.name);
formData.append("content_type", file.type);
formData.append("account", spokiAccount?.id);
const metadata = await client.metadata();
const sendMedia = await client.request({
url: `${BASE_URL}/media/`,
type: "POST",
dataType: "json",
data: formData,
headers: {
"Content-Type": "multipart/form-data",
X-secret:
typeof metadata.installationId === "string"
? spokiAccessKey
: "{{setting.spokiAccessKey}}",
},
secure: !(typeof metadata.installationId === "string"),
});
"hello
Tipene Hughes sir When I pass FormData
as the payload in my API call, the media file is not included in the payload when I check the request in the browser's network tab. Why is this happening, and how can I fix it? Also, can you confirm if my code is correct?"
コメントを表示 · 編集日時:2024年11月18日 · Rocky Tennoh
0
フォロワー
0
投票
0
コメント