Skip to content

MediaUploadPreparedEvent

@blobs/sdk v0.1.0


@blobs/sdk / types/events / MediaUploadPreparedEvent

Defined in: types/events.ts:212

Emitted when a media upload is prepared (presigned URL issued).

Extends

Properties

timestamp

timestamp: string

Defined in: types/events.ts:18

ISO-8601 timestamp the event was emitted.

Inherited from

BaseEvent.timestamp


network_id?

optional network_id?: string

Defined in: types/events.ts:20

Network the event belongs to (multi-network deployments).

Inherited from

BaseEvent.network_id


event_name

event_name: "media.upload.prepared"

Defined in: types/events.ts:214

Discriminator.

Overrides

BaseEvent.event_name


media_id

media_id: string

Defined in: types/events.ts:216

ID of the media record.


user_id

user_id: string

Defined in: types/events.ts:218

Uploading user.


blob_id?

optional blob_id?: string

Defined in: types/events.ts:220

Blob the upload will attach to, if any.


filename

filename: string

Defined in: types/events.ts:222

Original filename.


mime_type

mime_type: string

Defined in: types/events.ts:224

Detected MIME type.


size_bytes

size_bytes: number

Defined in: types/events.ts:226

Expected size in bytes.


upload_url

upload_url: string

Defined in: types/events.ts:228

Pre-signed URL the client should PUT/POST bytes to.


organization_id?

optional organization_id?: string

Defined in: types/events.ts:230

Owning organization ID, if applicable.