You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Sergey Shakhnazarov (JIRA)" <ji...@apache.org> on 2016/07/05 14:44:11 UTC
[jira] [Commented] (CB-11492) window.resolveLocalFileSystemURL is
not resolving content:// path to a file:// path
[ https://issues.apache.org/jira/browse/CB-11492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15362574#comment-15362574 ]
Sergey Shakhnazarov commented on CB-11492:
------------------------------------------
[~josh.m.sharpe@gmail.com], the issue does not reproduce for me neither on Android 5.0.1 with {{content://media/external/images/media/...}} nor on Android 4.4.2 emulator with {{content://com.android.providers.media.documents/document/image...}}.
Could you please add environment details (device, OS version) and repro steps (ideally a failing code sample)?
> window.resolveLocalFileSystemURL is not resolving content:// path to a file:// path
> -----------------------------------------------------------------------------------
>
> Key: CB-11492
> URL: https://issues.apache.org/jira/browse/CB-11492
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, Plugin File
> Affects Versions: 4.2.0
> Reporter: Josh Sharpe
>
> It's my understanding that the file plugin (resolveLocalFileSystemURL) should handle this, however I had to use the file-path plugin (resolveNativePath)
> var path = "content://com.android.providers.media.documents/document/image:1051";
> window.resolveLocalFileSystemURL(path, function(a){
> console.log(a)
> })
> -> undefined
> window.FilePath.resolveNativePath(path, function(localFileUri) {
> console.log(localFileUri)
> });
> -> "file:///storage/emulated/0/DCIM/Camera/IMG_20160625_104045.jpg"
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org