최근 검색
최근 검색 없음

Sudharsun Padma Ravi
가입한 날짜: 2022년 8월 21일
·
마지막 활동: 2024년 11월 07일
팔로잉
0
팔로워
0
총 활동 수
6
투표
1
플랜 수
2
활동 개요
배지
문서
게시물
커뮤니티 댓글
문서 댓글
활동 개요
님의 최근 활동 Sudharsun Padma Ravi
Sudharsun Padma Ravi님이 에 게시물을 만듦
I have a custom Contact Us form that was built via AJAX. The files uploaded via API call to https://narvar.zendesk.com/api/v2/uploads.json are successful and token is returned. However, the uploaded file is corrupted and does not open. Can someone assist regarding this? This is the code that is being used
const attachmentTokens = [];
const username = "user@user.com"; // Replace with your username
const apiToken = "token"; // Replace with your API token
const authHeader = "Basic " + btoa(username + "/token:" + apiToken); // Concatenate username with /token and the API token
for (const file of files) {
const formData = new FormData();
const fileName = encodeURIComponent(file.name);
const fileContentType = file.type || "application/octet-stream"; // Default to a generic binary type if type is not available
const fileBlob = new Blob([file], { type: fileContentType });
// Log the file as a Blob for debugging
console.log("File Blob:", fileBlob);
formData.append("file", fileBlob, file.name);
console.log("FileType:", fileContentType);
console.log("FileName:", fileName);
console.log("File:", formData);
try {
const response = await $.ajax({
url: `https://narvar.zendesk.com/api/v2/uploads.json?filename=${fileName}`,
type: "POST",
data: formData,
processData: false,
contentType: false,
headers: {
Authorization: authHeader,
"Content-Type": fileContentType,
},
xhrFields: {
responseType: "json", // Set expected response type as JSON
},
});
2024년 11월 07일에 게시됨 · Sudharsun Padma Ravi
0
팔로워
1
투표
1
댓글
Sudharsun Padma Ravi님이 에 게시물을 만듦
Our light agents create tickets for our customers in our Zendesk instance. This requests them to CC end-users so that our engineers route any communication to our end-users.
Would like to use off the CC feature to our light agents.
2022년 9월 13일에 게시됨 · Sudharsun Padma Ravi
0
팔로워
3
투표 수
2
댓글
Sudharsun Padma Ravi님이 에 댓글을 입력함
Change metric is an important aspect. This would allow us to use one query/reporting with multiple metrics.
댓글 보기 · 2022년 8월 21일에 게시됨 · Sudharsun Padma Ravi
0
팔로워
5
투표 수
0
댓글