Recent searches
No recent searches

Shweta Srivastava
Joined Oct 16, 2021
·
Last activity Oct 16, 2021
Following
0
Followers
0
Total activity
3
Votes
0
Subscription
1
ACTIVITY OVERVIEW
BADGES
ARTICLES
POSTS
COMMUNITY COMMENTS
ARTICLE COMMENTS
ACTIVITY OVERVIEW
Latest activity by Shweta Srivastava
Shweta Srivastava commented,
Hi Eric,
The setting is unticked for now. My understanding is it has to be unticked only.
Thanks
View comment · Posted Oct 13, 2021 · Shweta Srivastava
0
Followers
0
Votes
0
Comments
Shweta Srivastava created a post,
My requirement is to give customer option to upload image & this image needs to be send to zen desk. Do I need to upload the image on some server before using the upload function of zen desk.
Following is the code i m trying, but its not working
$uri = 'https://company.zendesk.com/api/v2/uploads.json?filename=image.jpg';
$target_file = $_FILES['file']['tmp_name'];
$fildata = file_get_contents($_FILES["fileToUpload"]["tmp_name"]);
$ch = curl_init();
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_MAXREDIRS, 10 );
curl_setopt($ch, CURLOPT_URL, $uri);
curl_setopt($ch, CURLOPT_USERPWD, "xxxx@test.com/token:xxxxx");
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: application/binary'));
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $fildata);
curl_setopt($ch, CURLOPT_INFILE, $file);
curl_setopt($ch, CURLOPT_INFILESIZE, $size);
curl_setopt($ch, CURLOPT_USERAGENT, "MozillaXYZ/1.0");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_VERBOSE, true);
$output = curl_exec($ch);
Posted Sep 28, 2021 · Shweta Srivastava
0
Followers
4
Votes
5
Comments