Can i disable file attachment for admin? | Community
Skip to main content

Can i disable file attachment for admin?

  • March 2, 2023
  • 5 replies
  • 0 views

I was trying to create an app to prevent file attachments from the ticket admin. But the api only allows me to watch the attach event.

5 replies

Greg29
  • March 2, 2023

Hi Nurymkhan! We do not have an available method in ZAF to disable the attachment option in the ticket editor.


  • Author
  • March 3, 2023

Hi Greg. And there is no way to solve this?


Sasha12
  • March 9, 2023

Hi Nurymkhan!

As we discussed in the call, here is the proposed solution:

  1. Create a ticket Side Bar App
  2. Listen to comment.attachments.changed
  3. If an attachment is added, fire another API call to delete the attachment from the comment
  4. [Optional] Show dialog/modal on error about adding the attachment
  5. Result: If the agent press Send button, it will still not deliver the message
This will be the generic solution since it is workable for both Comment base (email) + Messaging
If it's too complicated - our PS and partners are here to help. 
 
We will be visiting your company next week, see you!

  • Author
  • March 15, 2023

Hi @sasha12!
If you mean Delte Upload endpoint - this removes the attachment file itself, but does not exclude it  from the comment.

Perhaps you meant some other endpoint?
Thank you for your feedback.


  • August 17, 2023

Hi all,

then how does this work?