cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niklas Merz (JIRA)" <>
Subject [jira] [Commented] (CB-2627) HTML File Input should support accept/source attributes
Date Sat, 08 Apr 2017 10:05:42 GMT


Niklas Merz commented on CB-2627:

I am trying to add intents right now. I have also stumbled on this while using the InAppBrowser

The thing is that Android webview offers a simple way to open file picker. See my comment
above.  I think Android WebView should support W3C recommendation:

At the moment I have gotten so far to that, if the capture attribute is set, the suitable
intent should be triggered.
For example:
<input id="img" type="file" accept="image/*" capture="true">
 opens camera

I will try to add this to  Cordova. Maybe someone would like to have a look:

> HTML File Input should support accept/source attributes
> -------------------------------------------------------
>                 Key: CB-2627
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Android
>            Reporter: Michael Migdol
>            Priority: Minor
> [CB-2086] always opens a generic File Picker, regardless of the values passed in for
the mimetypes in the accept attribute, or the source attribute.  The Android Browser correctly
examines these attributes and starts up an activity with either: a camera intent, a camera/image
intent, a camcorder intent, a sound recorder intent, or a sound recorder/audio intent.  
> I'm not sure what cross-pollination is allowed between the Android codebase and Cordova's,
but it appears that packages/apps/Browser/src/com/android/browser/ from
the Android source tree contains exactly what we need to accomplish the same.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message