Ionic1 + input [type=file] does not work; How does it work?

Asked

Viewed 89 times

0

In my project, has a file type input that Chrome works correctly, Ios not tested and Android input does not work.

Is there a Cordova plugin that makes the input file work or some javascript solution that works?

1 answer

0

Depends on the type of files you want to allow the user to choose.

The input type='file' should work for iOS, but only allows you to choose images from the user’s gallery. Already for Android, only with the Cordova plugin-camera (it allows the user to access your image gallery).

The plugin-camera documentation is here.

However, if you want to allow the user to select any file type, the Cordova plugin-file (whose documentation is located here) should fit.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.