0

I am creating an Ionic1 hybrid app and I need to implement filePicker functionality. I have tried using recommended plugin discussed here: https://forum.ionicframework.com/t/recommended-android-ios-file-chooser-plugin/20761/8 But it gives error that FilePicker not defined.Any help on this? or any other plugin that can help me pick files for both android and IOS.

2
  • Can you add error logs
    – Dolo
    Jun 27, 2018 at 6:46
  • @Dolo no specified error log. It just goes in error response block
    – Naila
    Jun 27, 2018 at 7:03

1 Answer 1

0

For ionic1, I recommend to use the native HTML5 file picker, for example for uploading an image use the following:

<input id="file-image" type="file" accept="image/*" ng-model='input.image' base-sixty-four-input />

You can change the accept attribute to match the MIME type you want.

This solution works perfectly and tested on Android and iOS.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.