Skip to main content

File Picker

Overview

A visible component to select files from device storage and can access the content in it.

Component Properties

PropertyDescription
MultipleIf enabled, multiple files can be selected at a time.
AcceptDefines 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...

variabletypedescription
filesFilesList

After File Read

Event fires after the file content is been read succesfully

loading block...

variabletypedescription
contentStringList

After File Read Error

Event fires after the file content is been read failed

loading block...

variabletypedescription
messageStringThe 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 ParamsTypeDescription
FileFileDictionary

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 ParamsTypeDescription
FileFileDictionary

Read File As Blob

Reads the file and gives the blob content of it, in the After Files(s) Read event

loading block...

Input ParamsTypeDescription
FileFileDictionary

Read File As Text

Reads the file and gives the text content of it, in the After Files(s) Read event

loading block...

Input ParamsTypeDescription
FileFileDictionary

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...