@serenity-is/corelib / UploadInputOptions
Interface: UploadInputOptions
Defined in: src/ui/helpers/uploadhelper.tsx:321
Options for creating an upload input.
Properties
allowMultiple?
optionalallowMultiple:boolean
Defined in: src/ui/helpers/uploadhelper.tsx:341
Whether multiple files may be selected.
container?
optionalcontainer:HTMLElement|ArrayLike<HTMLElement>
Defined in: src/ui/helpers/uploadhelper.tsx:325
The container element to add the input to.
fileDone()?
optionalfileDone: (p1,p2,p3) =>void
Defined in: src/ui/helpers/uploadhelper.tsx:353
Callback invoked when a file upload completes.
Parameters
p1
p2
string
p3
any
Returns
void
inputName?
optionalinputName:string
Defined in: src/ui/helpers/uploadhelper.tsx:337
The name of the input element.
progress?
optionalprogress:HTMLElement|ArrayLike<HTMLElement>
Defined in: src/ui/helpers/uploadhelper.tsx:333
The progress element.
uploadIntent?
optionaluploadIntent:string
Defined in: src/ui/helpers/uploadhelper.tsx:345
An optional upload intent appended to the upload URL.
uploadUrl?
optionaluploadUrl:string
Defined in: src/ui/helpers/uploadhelper.tsx:349
The upload URL. Defaults to the temporary upload endpoint.
zone?
optionalzone:HTMLElement|ArrayLike<HTMLElement>
Defined in: src/ui/helpers/uploadhelper.tsx:329
The drop zone element.