Attach images are broken in agent's portal


  • Bryan - Community Manager
    Zendesk Developer Support Team

    Pulling into here the conversation from

    Hi raghees -- I don't have any Node.js sample code for this particular scenario. If you're using Node and using the Upload and Ticket Update APIs, this should work to attach a file to a ticket. If you're still having issues, please post a simplified version of your Node code here that reproduces the problem. If you got it working and don't mind, please share what ended up working. Thanks!

  • Bryan - Community Manager
    Zendesk Developer Support Team

    FYI raghees - Possibly related for anyone using this Node.js library to upload images -- see post

    There is a "binary" parameter that needs to be set to "false" when passing in a string to indicate the file location of a binary file. Example:

    var zendesk = require('node-zendesk');

    var client = zendesk.createClient({
    username: '',
    password: 'mypassword',
    remoteUri: ''

    client.attachments.upload("./myBinaryFile.jpg", {binary: false, filename: 'myBinaryFile.jpg'}, function(err, req, result) {
    if (err) {
    console.log("error:", err);
    console.log("result:", result);
    console.log("req:", req);



Please sign in to leave a comment.

Powered by Zendesk