网易云

Ionic实战视频教程(跨平台): https://www.itying.com/goods-1067.html

Flutter实战视频教程(跨平台): https://www.itying.com/goods-1176.html

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

联系我们?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.

Contact Us Today!

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

ionic cordova plugin add cordova-plugin-filepicker npm install @ionic-native/file-picker
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEY npm install @ionic-enterprise/file-picker

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

  • iOS

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

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

constructor(private filePicker: IOSFilePicker) { }

...

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