---
title: "Rocket Chat Uploads Event Interfaces"
slug: "uploads-event-interfaces"
description: "Learn about uploads event interfaces in Rocket Chat. Manage secure file transfers and streamline collaboration."
updated: 2026-02-03T07:02:01Z
published: 2026-02-03T07:02:01Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://developer.rocket.chat/llms.txt
> Use this file to discover all available pages before exploring further.

# 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. Refer to the [TypeScript definition](https://rocketchat.github.io/Rocket.Chat.Apps-engine/interfaces/uploads_IPreFileUpload.IPreFileUpload.html) for more details.

| 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. |
