Skip to content

@serenity-is/corelib / UploadInputOptions

Interface: UploadInputOptions

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

Options for creating an upload input.

Properties

allowMultiple?

optional allowMultiple: boolean

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

Whether multiple files may be selected.


container?

optional container: HTMLElement | ArrayLike<HTMLElement>

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

The container element to add the input to.


fileDone()?

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

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

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:336

The name of the input element.


progress?

optional progress: HTMLElement | ArrayLike<HTMLElement>

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

The progress element.


uploadIntent?

optional uploadIntent: string

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

An optional upload intent appended to the upload URL.


uploadUrl?

optional uploadUrl: string

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

The upload URL. Defaults to the temporary upload endpoint.


zone?

optional zone: HTMLElement | ArrayLike<HTMLElement>

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

The drop zone element.