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

Suporte
参加日2024年3月04日
·
前回のアクティビティ2024年4月08日
フォロー中
0
フォロワー
0
合計アクティビティ
4
投票
1
サブスクリプション
1
アクティビティの概要
バッジ
記事
投稿
コミュニティへのコメント
記事へのコメント
アクティビティの概要
さんの最近のアクティビティ Suporte
Suporteさんが投稿を作成しました:
投稿 Developer - Zendesk APIs
I'm trying to upload an image from an input[type=file], but when I try to open or attach it to a ticket, the image is broken.
Details :
I am using Nuxt3
function that send to backend
the sent data:

the route that receive the data:

the function to upload the image

response from /api/v2/uploads.json :
{
"attachment": {
"url": "https://territoriosaber.zendesk.com/api/v2/attachments/23461691516059.json",
"id": 23461691516059,
"file_name": "test_upload.png",
"content_url": "https://territoriosaber.zendesk.com/attachments/token/QjqqarQt44JkCnTNrcvJx8Vjt/?name=test_upload.png",
"mapped_content_url": "https://territoriosaber.zendesk.com/attachments/token/QjqqarQt44JkCnTNrcvJx8Vjt/?name=test_upload.png",
"content_type": "image/png",
"size": 102032,
"width": null,
"height": null,
"inline": false,
"deleted": false,
"malware_access_override": false,
"malware_scan_result": "malware_not_found",
"thumbnails": [
]
}
}
{
"attachment": {
"url": "https://territoriosaber.zendesk.com/api/v2/attachments/23461691516059.json",
"id": 23461691516059,
"file_name": "test_upload.png",
"content_url": "https://territoriosaber.zendesk.com/attachments/token/QjqqarQt44JkCnTNrcvJx8Vjt/?name=test_upload.png",
"mapped_content_url": "https://territoriosaber.zendesk.com/attachments/token/QjqqarQt44JkCnTNrcvJx8Vjt/?name=test_upload.png",
"content_type": "image/png",
"size": 102032,
"width": null,
"height": null,
"inline": false,
"deleted": false,
"malware_access_override": false,
"malware_scan_result": "malware_not_found",
"thumbnails": [
]
}
}

already try looking at https://developer.zendesk.com/documentation/ticketing/using-the-zendesk-api/adding-ticket-attachments-with-the-api/
but I must be missing something
If anyone could help I would be very grateful
thank you
EDIT: add the token response
thank you
EDIT: add the token response
編集日時:2024年3月04日 · Suporte
0
フォロワー
7
投票
9
コメント