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

brian johnston commented on CB-6201:
------------------------------------

I was forced to upgrade after Apple quit supporting iOS 6 so I have some test 
results earlier than I wanted to.  My tests were in two categories because the 
behavior of files for the camera plugin is different than the media plugin 
which I use for sound files.  The camera api does not allow the user to specify 
the file name of the photo taken.  The photo is taken and then the plugin 
passes back the file URI to the photo file.  This photo file goes into 
temporary storage so my app moves it to a persistent folder.  In version 1.0 I 
used fullPath to move the file.  However in version 1.0.1 I simply switched 
over to the "toNativeURL()" method and all is good.  I first tried "toURL()" 
but found the image tag in both iOS and Android did not recognize that path 
with or without "cdv" in front.  Ultimately, I could find no valid use cases 
for fullPath or toURL() in any of my tests (and I did many, many tests).  So, 
for the camera API the issue is resolved by toNativeURL().  However, the media 
plugin is different and I could find no valid use for any of the fileEntry 
properties or methods including toNativeURL().  The media plugin does allow the 
user to pass in a file name so with version 1.0 I was passing in a file URI to 
a persistent folder.   However that does not work anymore.  I tried all the 
variations including toFullPath, toURL() and toNativeURL() but it will not 
accept any of them.  In each case the media API silently fails and does not 
call the error callback.  If a bare file name with no path in front is passed 
in the media API does not fail.  However, I am still working on what to do next 
since the app has to get to sound file somehow to upload, it, save from being 
destroyed when the app is re-installed and remove the file when user is wanting 
it deleted.   I was in alpha testing and now I am back to development.  
Ultimately this has cost me two full days and I'm not finished solving the 
problems. This upgrade has been very painful and at one point I thought I might 
not be able to save the last four months of development.  

> 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