Hi,
I'm trying to upload an image to a ticket, taken from a HTML5 upload input. I successfully get a return from the API call but the image is always a blank 16*16.
$image = $_FILES['image']['name'];
$imageTmp = $_FILES['image']['tmp_name'];
$uploadImage = json_decode(shell_exec("curl https://subdomain.zendesk.com/api/v2/uploads?filename=$image \
-data-binary @/$imageTmp/$image \
-v -u username:password \
-H \"Content-type: multipart/form-data\" \
-X POST"), true);
All sensitive information has been removed.
Just a shot in the dark here...what is the file size of the image you're trying to upload?
Greg Katechis | Developer Support and Enablement Engineer