You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am having a hard time getting a file picker to work in my ionic/capacitor project. I have installed the plugin "capacitor-filepicker-plugin" using npm and am using it like this:
`
import { Plugins, Capacitor } from '@capacitor/core';
The Capacitor.Plugins.FilePicker is null always. I'm thinking I have to register it somehow after installing it but I don't know how/where to do that. If anyone has any ideas or suggestions please let me know! I only need this for iOS not Android
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I am having a hard time getting a file picker to work in my ionic/capacitor project. I have installed the plugin "capacitor-filepicker-plugin" using npm and am using it like this:
`
import { Plugins, Capacitor } from '@capacitor/core';
.....
if(Capacitor && Capacitor.isNative && Capacitor.Plugins.FilePicker) {
let fileInfo = await Capacitor.Plugins.FilePicker.pick();
}else{
console.log("Not available");
}
`
The Capacitor.Plugins.FilePicker is null always. I'm thinking I have to register it somehow after installing it but I don't know how/where to do that. If anyone has any ideas or suggestions please let me know! I only need this for iOS not Android
Ionic:
Ionic CLI : 5.4.16 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 5.2.1
@angular-devkit/build-angular : 0.803.27
@angular-devkit/schematics : 8.3.27
@angular/cli : 8.3.27
@ionic/angular-toolkit : 2.2.0
Capacitor:
Capacitor CLI : 1.5.2
@capacitor/core : 1.5.2
System:
NodeJS : v12.16.1 (/usr/local/bin/node)
npm : 6.13.4
OS : macOS Catalina
Xcode : Xcode 11.5 Build version 11E608c
Beta Was this translation helpful? Give feedback.
All reactions