Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-2627

HTML File Input should support accept/source attributes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • cordova-android
    • None

    Description

      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/UploadHandler.java from the Android source tree contains exactly what we need to accomplish the same.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mmigdol Michael Migdol
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: