diff --git a/PHP/create_ticket_with_attachment.php b/PHP/create_ticket_with_attachment.php index 6210ed1..fc51bb5 100644 --- a/PHP/create_ticket_with_attachment.php +++ b/PHP/create_ticket_with_attachment.php @@ -10,7 +10,7 @@ 'description' => 'testing description content', 'priority' => 2, 'status' => 2, - 'attachments[]' => curl_file_create("data/x.png", "image/png", "x.png") + 'attachments[]' => '@path-to-file/x.png' ); $url = "https://$yourdomain.freshdesk.com/api/v2/tickets";