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

Nexus 5 DestinationType.FILE_URI issue OS 5.1 Lollipop

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-android
    • Labels:
      None
    • Flags:
      Important

      Description

      This is simple code I am using for get Image from gallery.
      [code]
      navigator.camera.getPicture(uploadPhoto, onGetPictureFail,

      { destinationType: Camera.DestinationType.FILE_URI, sourceType : navigator.camera.PictureSourceType.PHOTOLIBRARY }

      );

      [/code]

      return File URI In Nexus 5 OS 5.1 :
      "content://com.android.providers.media.documents/document/image%3A1778"

      return File URI in Samsung S III OS 4.4.2
      "content://media/external/images/media/186"

      due to this change FileTransfer doesn't upload file picked up from Nexus 5 device. while same code working on other android kitkat devices includes windows phone

      Any help would be appreciated.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                saifuddin Muhammad Saifuddin
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: