# FileUpload

Payload of the file-uploaded platform event, describing an uploaded file and where it landed.

> Kind: Apex type · Updated: 2026-07-01

FileUpload is the output that Platform Events and the Platform Events Apex Handler return for the file-uploaded platform event type. Resolve it from an event via Client.getEventDetails().

## Fields

### Output fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| Id | String | optional | CloudFiles resource id of the uploaded file. |
| DriveId | String | optional | Id of the drive the file was uploaded to. |
| Library | String | optional | Storage library the file belongs to. |
| RecordId | String | optional | Salesforce record id associated with the upload. |
| UserId | String | optional | Salesforce user id that performed the upload. |
| Name | String | optional | File name of the uploaded file. |
| ParentFolderId | String | optional | Id of the folder the file was uploaded into. |
