iOS File Picker

Contents

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

Installation

ionic cordova plugin add cordova-plugin-filepickernpm 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=YOURPRODUCTKEYnpm install @ionic-enterprise/file-picker

Supported Platforms

  • iOS

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));