iOS File Picker

Contents

Opens the file picker on iOS for the user to select a file, returns a file URI.

https://github.com/jcesarmobile/FilePicker-Phonegap-iOS-Plugin

Ionic iOS File Picker插件的安装(Installation)

ionic cordova plugin add cordova-plugin-filepicker npm install @ionic-native/file-picker

Ionic iOS File Picker插件支持的平台(Supported Platforms)

  • iOS

Ionic iOS File Picker插件的用法(Usage)

import { IOSFilePicker } from '@ionic-native/file-picker';

constructor(private filePicker: IOSFilePicker) { }

...

this.filePicker.pickFile()
  .then(uri => console.log(uri))
  .catch(err => console.log('Error', err));