Input type file is not supported in Android phonegap app with accept = 'image / *; capture = camera '

I have created an application using phonegap that requires loading an image from gallery, camera, etc.

I use

<input type='file' accept='image/*;capture=camera' />

      

but it doesn't support on android, it only shows gallery and not camera, while in iphone it works for camera, but after selecting the captured camera image, it updates the app.

Please help me if I am wrong.

Thanks, Vijay Barnwal

+3


source to share


1 answer


Bro I'm guessing the syntax error in the code you provided must have been

<input type='file' accept='image/*' capture='camera' />

      



instead

  <input type='file' accept='image/*;capture=camera' />

      

+1


source







All Articles