Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
5 lines (3 loc) · 843 Bytes

File metadata and controls

5 lines (3 loc) · 843 Bytes

Uploads - Event Interfaces

The table below contains the upload-related events, as well as the purpose of each event. If you want to execute actions based on upload events, you can use any of the events mentioned below as an event interface.

InterfaceDescription
IPreFileUpload

Event interface that allows an app to register as a handler of the IPreFileUpload event.

This event is triggered prior to an upload successfully being saved to the database, but only after all its contents have been retrieved by Rocket.Chat. To prevent the upload from completing, an app should throw a FileUploadNotAllowedException with a message specifying the reason for rejection.