Skip to main content

On Upload Attachment

Triggered when a user uploads an attachment to the record through the widget interface. This event allows you to perform actions such as validating the attachment, processing the file, or integrating with external storage services.

Commonly used for :
  • Validating file types and sizes before upload
  • Processing or transforming files after upload
  • Integrating with third-party storage or processing services
  • Updating the UI to reflect new attachments
  • Triggering notifications or workflows based on uploaded content
Sample Code :
REQUEST DETAILS
window.onload = function () {
  ZFAPPS.extension.init().then(function(App) {
   App.instance.on('ON_UPLOAD_ATTACHMENT', function () {
   /* Actions */ 
   });
  })
};
Related Modules :