@serenity-is/corelib / UploadInputOptions
Interface: UploadInputOptions
Defined in: src/ui/helpers/uploadhelper.tsx:320
Options for creating an upload input.
Properties
allowMultiple?
optionalallowMultiple:boolean
Defined in: src/ui/helpers/uploadhelper.tsx:340
Whether multiple files may be selected.
container?
optionalcontainer:HTMLElement|ArrayLike<HTMLElement>
Defined in: src/ui/helpers/uploadhelper.tsx:324
The container element to add the input to.
fileDone()?
optionalfileDone: (p1,p2,p3) =>void
Defined in: src/ui/helpers/uploadhelper.tsx:352
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:336
The name of the input element.
progress?
optionalprogress:HTMLElement|ArrayLike<HTMLElement>
Defined in: src/ui/helpers/uploadhelper.tsx:332
The progress element.
uploadIntent?
optionaluploadIntent:string
Defined in: src/ui/helpers/uploadhelper.tsx:344
An optional upload intent appended to the upload URL.
uploadUrl?
optionaluploadUrl:string
Defined in: src/ui/helpers/uploadhelper.tsx:348
The upload URL. Defaults to the temporary upload endpoint.
zone?
optionalzone:HTMLElement|ArrayLike<HTMLElement>
Defined in: src/ui/helpers/uploadhelper.tsx:328
The drop zone element.