[ 
https://issues.apache.org/jira/browse/CB-3413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ian Clelland resolved CB-3413.
------------------------------

    Resolution: Fixed

Resolved with the new version of cordova-plugin-file (dev branch, v1.0.0-dev)

Files are now (on Android and iOS at least) accessed with
{{cdvfile://localhost/<filesystemName>/path/to/file}}

Where <filesystemName> is either {{persistent}} or {{temporary}}

There is no requirement for consistency across platforms, as these paths only 
ever refer to files on an actual device. The only requirement is that the 
filenames are stable between different runs of the same application (so that 
paths -- URLs -- can be stored and used later to access the same files.)

> Inconsistency in GetFileEntry - uri's vs paths
> ----------------------------------------------
>
>                 Key: CB-3413
>                 URL: https://issues.apache.org/jira/browse/CB-3413
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, iOS, Plugin File
>    Affects Versions: 2.7.0
>            Reporter: Shravan Narayan
>            Assignee: Ian Clelland
>             Fix For: 3.4.0
>
>
> The getFileEntry in android returs a file: uri "file:///storage/something" 
> while the getFileEntry on ios returns a file path "/var/something"...
> It is unclear whether we need to return a file: uri here or a path, but at 
> the very least it should be consistent. 
> Other platforms will have to be tested to ensure they are consistent with the 
> chosen solution as well.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to