# fileChooser

## Description

Allows the user to choose multiple files.

## Input / Parameter

N/A

## Output

N/A

## Callback

### callback

The function to be executed if multiple files are chosen successfully.

### errorCallback

The function to be executed if multiple files are not chosen successfully.

## Video

Coming Soon.

## Example

The user wants to choose multiple files.

### Step

| No. | Description                                                                                                                                                                                                      |                                                                                                                                                |
| --- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| 1.  | ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-b1ace321e4d7eb5b6f215239eaa8adeaa9190d77%2FfileChooser-step-1.png?alt=media) | Drag a button to a page in the mobile designer. Select the event `click` for the button and drag the function `fileChooser` to the event flow. |
| 2.  | ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-573387757e4fb70cef3f62083f749425363431c8%2FfileChooser-step-2.png?alt=media) | Drag the function to be executed when multiple files are chosen successfully. In this example, we are using the `infoDialog` function.         |
| 3.  | ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-6ff2e2fdc0026049f7df2434b757c18a9c3c3bd2%2FfileChooser-step-3.png?alt=media) | Fill in the parameters of the function.                                                                                                        |

### Result?

When the button is pressed, the infoDialog will show the files chosen.

## Links
