- The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
- The interface of this module will be discarded later.Calling the following interface throws an exception. It is not recommended to use the following interface in OpenHarmony.
## Modules to Import
```js
importdocumentfrom'@ohos.document';
```
## document.choose
choose(type:string[]): Promise<string>
Selects a file using the file manager and returns the file URI asynchronously using a promise.
| type | string | Yes | Type of the file. Currently |
| callback | AsyncCallback<void> | Yes | Asynchronous callback used to open the file corresponding to the URI(Note: the current returned error code) |