2021-09-29 20:09:02 +08:00
|
|
|
# Chooser
|
|
|
|
|
|
|
|
```
|
2023-07-12 02:40:56 +08:00
|
|
|
$ ionic cordova plugin add http://github.com/MaximBelov/cordova-plugin-chooser.git
|
2021-09-29 21:19:55 +08:00
|
|
|
$ npm install @awesome-cordova-plugins/chooser
|
2021-09-29 20:09:02 +08:00
|
|
|
```
|
|
|
|
|
2021-09-29 21:19:55 +08:00
|
|
|
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/chooser/)
|
2021-09-29 20:09:02 +08:00
|
|
|
|
2023-07-12 02:40:56 +08:00
|
|
|
Plugin Repo: [https://github.com/MaximBelov/cordova-plugin-chooser](https://github.com/MaximBelov/cordova-plugin-chooser)
|
2021-09-29 20:09:02 +08:00
|
|
|
|
|
|
|
File chooser plugin for Cordova.
|
|
|
|
|
|
|
|
The following must be added to config.xml to prevent crashing when selecting large files on Android:
|
|
|
|
```xml
|
|
|
|
<platform name="android">
|
|
|
|
<edit-config
|
|
|
|
file="app/src/main/AndroidManifest.xml"
|
|
|
|
mode="merge"
|
|
|
|
target="/manifest/application">
|
|
|
|
<application android:largeHeap="true" />
|
|
|
|
</edit-config>
|
|
|
|
</platform>
|
|
|
|
```
|
|
|
|
|
|
|
|
## Supported platforms
|
|
|
|
|
|
|
|
- Android
|
|
|
|
- iOS
|
2021-09-29 20:38:45 +08:00
|
|
|
|
|
|
|
|
|
|
|
|