iOS DocumentPicker


Opens the file picker on iOS for the user to select a file, returns a file URI. Allows the user to upload files from iCloud

Ionic iOS DocumentPicker插件的安装(Installation)

ionic cordova plugin add cordova-plugin-documentpicker.DocumentPicker npm install @ionic-native/document-picker

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

  • iOS

Ionic iOS DocumentPicker插件的用法(Usage)

import { DocumentPicker } from '@ionic-native/document-picker';

constructor(private docPicker: DocumentPicker) { }


  .then(uri => console.log(uri))
  .catch(e => console.log(e));