최근 검색


최근 검색 없음

Suporte's Avatar

Suporte

가입한 날짜: 2024년 3월 04일

·

마지막 활동: 2024년 4월 08일

팔로잉

0

팔로워

0

총 활동 수

4

투표

1

가입 플랜

1

활동 개요

님의 최근 활동 Suporte

Suporte님이 에 댓글을 입력함

커뮤니티 댓글 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

댓글 보기 · 2024년 3월 13일에 게시됨 · Suporte

0

팔로워

0

투표 수

0

댓글


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": [
      
    ]
  }
}
 
 
 
 
but I must be missing something
 
If anyone could help I would be very grateful

thank you

EDIT: add the token response

2024년 3월 04일에 편집됨 · Suporte

0

팔로워

7

투표 수

9

댓글