Recherches récentes
Pas de recherche récente

Suporte
Adhésion le 04 mars 2024
·
Dernière activité le 08 avr. 2024
Suivis
0
Abonnés
0
Activité totale
4
vote
1
Abonnement
1
APERÇU DES ACTIVITÉS
BADGES
ARTICLES
PUBLICATIONS
COMMENTAIRES DE LA COMMUNAUTÉ
COMMENTAIRES SUR L’ARTICLE
APERÇU DES ACTIVITÉS
Dernière activité effectuée par Suporte
Suporte a ajouté un commentaire,
Commentaire de la communauté Developer - Zendesk APIs
Hi Lydia, sorry for the delay...
I've tryied your suggestion...
response and the image still broken...
any other idea?
thank for replying
Afficher le commentaire · Publication le 13 mars 2024 · Suporte
0
Abonnés
0
Votes
0
Commentaire
Suporte a créé une publication,
Publication 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
Modification le 04 mars 2024 · Suporte
0
Abonnés
7
Votes
9
Commentaires