Skip to content

@serenity-is/corelib / UploadInputOptions

Interface: UploadInputOptions

Defined in: src/ui/helpers/uploadhelper.tsx:321

Options for creating an upload input.

Properties

allowMultiple?

optional allowMultiple: boolean

Defined in: src/ui/helpers/uploadhelper.tsx:341

Whether multiple files may be selected.


container?

optional container: HTMLElement | ArrayLike<HTMLElement>

Defined in: src/ui/helpers/uploadhelper.tsx:325

The container element to add the input to.


fileDone()?

optional fileDone: (p1, p2, p3) => void

Defined in: src/ui/helpers/uploadhelper.tsx:353

Callback invoked when a file upload completes.

Parameters

p1

UploadResponse

p2

string

p3

any

Returns

void


inputName?

optional inputName: string

Defined in: src/ui/helpers/uploadhelper.tsx:337

The name of the input element.


progress?

optional progress: HTMLElement | ArrayLike<HTMLElement>

Defined in: src/ui/helpers/uploadhelper.tsx:333

The progress element.


uploadIntent?

optional uploadIntent: string

Defined in: src/ui/helpers/uploadhelper.tsx:345

An optional upload intent appended to the upload URL.


uploadUrl?

optional uploadUrl: string

Defined in: src/ui/helpers/uploadhelper.tsx:349

The upload URL. Defaults to the temporary upload endpoint.


zone?

optional zone: HTMLElement | ArrayLike<HTMLElement>

Defined in: src/ui/helpers/uploadhelper.tsx:329

The drop zone element.