chooseFile
Last updated
Last updated
Selects an image or file from the device’s storage.
Name | Description | Input Type | Default | Options | Required |
---|---|---|---|---|---|
Description | Output Type |
---|---|
The functions to be executed if file is chosen successfully.
Description | Output Type |
---|---|
Object format.
The functions to be executed if the file is not chosen.
In this example, we will use the Device.chooseFile
function to get some files data and show it on the console.
Call the function Device.chooseFile
inside the eventflow, and for it's type
param select value Image
and for it's multiple
param select value true
.
Call the function Log.write
inside the Device.chooseFile
function callback, and for it's value
param change the param type to input
.
Trigger the event.
Select the images.
Check the console.
Description | Output Type |
---|---|
type
Type of file to choose.
Text
-
Image, Other_Files
Yes
multiple
Whether to select multiple files or not.
Boolean
false
true, false
No
Returns the formatted information.
Object
The information of the chosen files.
Object
The error message.
Text