[ 
https://issues.apache.org/jira/browse/CB-6201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13958100#comment-13958100
 ] 

Ian Clelland commented on CB-6201:
----------------------------------

Thanks for the thorough look at this, Brian. It's really appreciated.

The change in .toURL has been more disruptive than I had hoped it would be, and 
hasn't revealed any compelling advantages over native URLs. The introduction of 
.toNativeURL, while generally solving the immediate issue for most people, 
isn't a long-term solution -- it's outside of the spec, and I suspect that 
advocating its use will just end up making the Cordova implementation of File 
substantially different than others, for no really good reason. I'm presently 
working on making toURL more useful to application code, so that it returns 
URLs which can actually be used for image / video / audio tags.

Once that's done; you should be able to switch back to that (or keep using 
toNativeURL; it will be left in for compatibility). fullPath will still be, as 
per the spec, relative to the root of the file system storage, so it's not what 
you'll want for identifying files by itself.

The Media plugin should be working with the new File plugin: CB-6201 was the 
issue for that, and was the reason that .toNativeURL was introduced originally. 
If you're running r0.2.9, then you should have correct .toNativeURL() methods 
on the FileEntry objects it returns. If you're seeing problems with it, please 
open up an issue for that and I'll address them. (Unless I've misread you, and 
the issue is still with 
moveTo/copyTo -- in that case, let me know what sort of URLs you are getting, 
and what API calls are failing)

> Invalid full path and URI returned from fileEntry.moveTo and fileEntry.copyTo 
> ------------------------------------------------------------------------------
>
>                 Key: CB-6201
>                 URL: https://issues.apache.org/jira/browse/CB-6201
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File
>    Affects Versions: 1.1.0
>         Environment: I'm building Android and iOS with build.phonegap.com 
> version 3.10.  This issue is occuring on both Android and iOS.
>            Reporter: brian johnston
>            Assignee: Ian Clelland
>         Attachments: copyToMoveToCode.txt
>
>
> fileEntry.fullPath does not return the full path in version 1.1.0.  However, 
> version 1.0.0 of the file plugin does return the full path.  This issue 
> occurs on both iOS and Android.  



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to