Recent searches
No recent searches

Will Ryan
Joined Apr 15, 2021
·
Last activity Mar 14, 2023
Following
0
Followers
0
Total activity
7
Votes
2
Subscriptions
2
ACTIVITY OVERVIEW
BADGES
ARTICLES
POSTS
COMMUNITY COMMENTS
ARTICLE COMMENTS
ACTIVITY OVERVIEW
Latest activity by Will Ryan
Will Ryan commented,
This is the only thing that would work for me. If i didn't do it like this, a blank image was appearing in the response:
$fileName = 'test.png';
$filePath = 'test.png';
$url = 'https://test.zendesk.com/api/v2/uploads.json?filename=' . urlencode($fileName);
$file = fopen($filePath, "r");
$mimeContentType = mime_content_type($file);
$size = filesize($filePath);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER ,true);
curl_setopt($ch, CURLOPT_POST ,true);
curl_setopt($ch, CURLOPT_POSTFIELDS, file_get_contents($filePath));
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-type: {$mimeContentType}"));
curl_setopt($ch, CURLOPT_VERBOSE, true);
curl_setopt($ch, CURLOPT_USERPWD, "test@test.com/token:XXXXXXXXXXXXXXXXXXX");
$output = curl_exec($ch);
$code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
fclose($file);
curl_close($ch);
View comment · Posted Mar 14, 2023 · Will Ryan
0
Followers
0
Votes
0
Comments
Will Ryan commented,
Unfortunately, Zendesk appears to have lost any focus on responding to customer needs. This feature is rather simple, lots of people want it, but still, requests are simply ignored.
I have two existing clients on Zendesk, and if it weren't a complete nightmare, I'd migrate them to one of Zedesk's more agile competitors. For new clients, I do not use Zendesk.
View comment · Posted Jan 06, 2021 · Will Ryan
0
Followers
1
Vote
0
Comments
Will Ryan commented,
This to me seems like a pretty basic feature. Surprised it hasn't been implemented.
View comment · Posted Jun 29, 2018 · Will Ryan
0
Followers
5
Votes
0
Comments