https://github.com/wavemaker/wm-filepicker-plugin
Cordova plugin that exposes API to select images, videos, audio and files.
https://github.com/wavemaker/wm-filepicker-plugin
Last synced: 7 months ago
JSON representation
Cordova plugin that exposes API to select images, videos, audio and files.
- Host: GitHub
- URL: https://github.com/wavemaker/wm-filepicker-plugin
- Owner: wavemaker
- License: apache-2.0
- Created: 2020-05-21T11:49:19.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-07T04:51:20.000Z (almost 2 years ago)
- Last Synced: 2025-08-09T19:25:47.289Z (8 months ago)
- Language: Swift
- Homepage:
- Size: 760 KB
- Stars: 4
- Watchers: 1
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wm-cordova-plugin-filepicker
Cordova plugin that exposes API to select images, videos, audio and files. This plugin supports both Android and iOS. In iOS, this plugin doesn't support selecting multiple files.
## ANDROID
IMAGE|VIDEO|AUDIO|FILE
-----|-----|-----|----
|
|
|
## IOS
IMAGE|VIDEO|AUDIO|FILE
-----|-----|-----|----
|
|
|
In config.xml, under ios platform add the following. Descriptions can be altered.
```
```
```
need music library access to upload audio files
```
```
need photo library access to save pictures there
```
```
need photo library access to get pictures from there
```
## API
cordova.wavemaker.filePicker.selectAudio(
true, //to select multiple audio files
function(selectedFilePaths) {
// code to use the selected audio file paths
}, function(error) {
// handle error
});
cordova.wavemaker.filePicker.selectFiles(
true, // to select multiple files
function(selectedFilePaths) {
// code to use the selected file paths
}, function(error) {
// handle error
});
cordova.wavemaker.filePicker.selectImage(
true, // to select multiple images
function(selectedFilePaths) {
// code to use the selected image file paths
}, function(error) {
// handle error
});
cordova.wavemaker.filePicker.selectVideo(
true, // whether to select multiple Videos
function(selectedFilePaths) {
// code to use the selected file paths
}, function(error) {
// handle error
});
## License
Apache License - 2.0