You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/08/22 15:47:57 UTC

[GitHub] [cordova-android] adityak74 commented on issue #816: Android clicking input type=file brings up system file browser, not camera options

adityak74 commented on issue #816: Android clicking input type=file brings up system file browser, not camera options
URL: https://github.com/apache/cordova-android/issues/816#issuecomment-523963297
 
 
   You could use `cordova-plugin-camera`'s `window.navigator.camera.getPicture` to trigger the right options on android. This method will let you choose your destination using https://github.com/apache/cordova-plugin-camera#cameradestinationtype--enum.
   
   Technically add an onClick listener to your <input> tag and handle it yourself by using the above API method, that should resolve your issue. 
   
   I guess `type="file"` is more generic and hence they handle it by showing a system file picker. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org