File Picker
Overview
A visible component to select files from device storage and can access the content in it.
Component Properties
| Property | Description |
|---|---|
| Multiple | If enabled, multiple files can be selected at a time. |
| Accept | Defines what type of files can be accepted. Example: .png, .txt, .mp3 etc... |
Blocks
Events
After File(s) Select
Event fires after the file(s) is/are selected
loading block...
| variable | type | description |
|---|---|---|
| files | Files | List |
After File Read
Event fires after the file content is been read succesfully
loading block...
| variable | type | description |
|---|---|---|
| content | String | List |
After File Read Error
Event fires after the file content is been read failed
loading block...
| variable | type | description |
|---|---|---|
| message | String | The error while reading the file |
Methods
Read File As Base64
Reads the file and gives the base64 content of it in the After Files(s) Read event
loading block...
| Input Params | Type | Description |
|---|---|---|
| File | File | Dictionary |
Read File As Array Buffer
Reads the file and gives the arraybuffer content of it, in the After Files(s) Read event
loading block...
| Input Params | Type | Description |
|---|---|---|
| File | File | Dictionary |
Read File As Blob
Reads the file and gives the blob content of it, in the After Files(s) Read event
loading block...
| Input Params | Type | Description |
|---|---|---|
| File | File | Dictionary |
Read File As Text
Reads the file and gives the text content of it, in the After Files(s) Read event
loading block...
| Input Params | Type | Description |
|---|---|---|
| File | File | Dictionary |
Properties
multiple file upload
Accepts: Boolean
set weather the multiple files can be selected or not
loading block...
accept file extensions
Accepts: List
set list of file extensions to accept
loading block...
accept file extensions
Returns: List
get the list of files extensions to accept
loading block...
hide
Accepts: Boolean
Hides the component if the input is true and shows it if the input is false
loading block...
hidden
Returns: Boolean
Returns true if the component is hidden and false if it is not
loading block...