Hi,
I need to be able to upload a file to a case but keep getting 4600.
The following is the code.
Any help would be greatly appreciated.
- <?php
- $recordId="my-record-id";
- $ch=curl_init();
- curl_setopt($ch,CURLOPT_HEADER,0);
- curl_setopt($ch,CURLOPT_VERBOSE,0);
- curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
- curl_setopt($ch,CURLOPT_URL,"https://crm.zoho.com/crm/private/xml/Cases/uploadFile?authtoken=<my-token>&scope=crmapi");
- curl_setopt($ch,CURLOPT_POST,true);
- $post=array("id"=>$recordId,"content"=>"/Users/john/files/filename.jpg");
- curl_setopt($ch,CURLOPT_POSTFIELDS,$post);
- $response=curl_exec($ch);
- echo $response;
- ?>