Preview environment

class FileUploadBuilder

external
declare class FileUploadBuilder extends ComponentBuilder<APIFileUploadComponent>

A builder that creates API-compatible JSON data for file uploads.

Constructors

constructor()

Creates a new file upload.

readonlyexternal
data : Partial<APIFileUploadComponent>

The API data associated with this component.

Inherited from: ComponentBuilder

external
clearId() : this

Clears the id of this component, defaulting to a default incremented id.

Inherited from: ComponentBuilder

external
clearMaxValues() : this

Clears the maximum values.

external
clearMinValues() : this

Clears the minimum values.

external
setCustomId(
customId: string
) : this

Sets the custom id for this file upload.

external
setId(
id: number
) : this

Sets the id (not the custom id) for this component.

Inherited from: ComponentBuilder

external
setMaxValues(
maxValues: number
) : this

Sets the maximum number of file uploads required.

external
setMinValues(
minValues: number
) : this

Sets the minimum number of file uploads required.

external
setRequired(
required?: boolean
) : this

Sets whether this file upload is required.

external
toJSON() : APIFileUploadComponent

Serializes this builder to API-compatible JSON data.