Documentation / @zerotal/flow / index / FileUpload
Function: FileUpload()
FileUpload(
props):HtmlNode
Defined in: flow/src/components.ts:1041
A dropzone bound to an @expose property. Selecting a file POSTs it to
/__flow/upload over HTTP, shows live progress, and $sets a signed reference the
server resolves into a TemporaryUploadedFile. Pairs with the FileUploads mixin.
Parameters
props
Returns
Remarks
Bind bind to the receiving property; multiple uploads an array, accept filters
the file picker, and children render below the dropzone (e.g. a preview of the
current value).
Example
<FileUpload bind={this.photo} accept="image/*" />
<FileUpload bind={this.docs} multiple />