cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "julio cesar (JIRA)" <>
Subject [jira] [Commented] (CB-5294) File input element not opening file picker in Android 4.4
Date Thu, 14 Nov 2013 22:19:22 GMT


julio cesar commented on CB-5294:

We can't answer there, right?
I've looked into android 4.4 source code and the openFileChooser with the 4.1+ syntax (public
void openFileChooser(ValueCallback<Uri> uploadMsg, String acceptType, String capture))
but it just doesn't work now, and by the google's answer, it seems that they have intentionally
removed it

> File input element not opening file picker in Android 4.4
> ---------------------------------------------------------
>                 Key: CB-5294
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 3.1.0
>         Environment: Android 4.4 (emulator and Nexus 5)
>            Reporter: Paul Kane
>            Assignee: Joe Bowser
>            Priority: Blocker
> The file input field doesn't respond when clicked/tapped in Android 4.4. Works fine in
previous Android versions. This is regardless of whether the Target Level is set to 18 or
> To reproduce, I created a fresh Cordova 3.1.0 project for Android. The only modification
I made to the default (placeholder) index.html file was adding a <form> element with
a single <input type="file"> element inside. Clicking the "Choose File" button does
nothing. No Logcat output or errors. Normally at this point a dialogue would open allowing
me to select an image from the gallery or take a picture, which is what happens in older Android

This message was sent by Atlassian JIRA

View raw message