ATellez
ATellez

Reputation: 115

Ionic-Upload picture from camera or gallery in Android

I'm developing an Ionic App for Android and I want to let the user upload a picture from camera or gallery, as the standard browser does. The Ionic app uses the web, but when I want to upload a picture it only let me upload a picture from files.

So this is what I want to achieve:

enter image description here

But this is what I get:

enter image description here

Thanks!!

Upvotes: 1

Views: 1067

Answers (1)

Mercedes
Mercedes

Reputation: 89

Add this to your config.xml (I am using ionic and crosswalk)

<access origin="image/*" launch-external="yes"/>

This worked for me, and is based on this question:

How to access a mobile's camera from a web app?

Upvotes: 1

Related Questions