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 Fri, 07 Apr 2017 18:03:41 GMT


Niklas Merz commented on CB-2627:

The file chooser is created by:

Intent uploadIntent = fileChooserParams.createIntent();

>From Android docs:
added in API level 21

Intent createIntent ()

Creates an intent that would start a file picker for file selection. The Intent supports choosing
files from simple file sources available on the device. Some advanced sources (for example,
live media capture) may not be supported and applications wishing to support these sources
or more advanced file operations should build their own Intent. 

I am trying to add itents depending on capture attributes now.

> 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