Uploads - Event Interfaces
    • Dark
      Light
    • PDF

    Uploads - Event Interfaces

    • Dark
      Light
    • PDF

    Article summary

    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.

    Interface

    Description

    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.


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.
    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence