Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F26E010655 for ; Wed, 2 Apr 2014 19:20:23 +0000 (UTC) Received: (qmail 92382 invoked by uid 500); 2 Apr 2014 19:20:23 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 92079 invoked by uid 500); 2 Apr 2014 19:20:21 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 91822 invoked by uid 99); 2 Apr 2014 19:20:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2014 19:20:18 +0000 Date: Wed, 2 Apr 2014 19:20:17 +0000 (UTC) From: "brian johnston (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-6201) Invalid full path and URI returned from fileEntry.moveTo and fileEntry.copyTo MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-6201?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1395806= 4#comment-13958064 ]=20 brian johnston commented on CB-6201: ------------------------------------ I was forced to upgrade after Apple quit supporting iOS 6 so I have some te= st results earlier than I wanted to. My tests were in two categories becau= se 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 goe= s into temporary storage so my app moves it to a persistent folder. In ver= sion 1.0 I used fullPath to move the file. However in version 1.0.1 I simp= ly switched over to the "toNativeURL()" method and all is good. I first tr= ied "toURL()" but found the image tag in both iOS and Android did not recog= nize 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 f= or 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 n= ot work anymore. I tried all the variations including toFullPath, toURL() = and toNativeURL() but it will not accept any of them. In each case the med= ia 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. Howe= ver, I am still working on what to do next since the app has to get to soun= d 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 a= lpha 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 th= e last four months of development. =20 > Invalid full path and URI returned from fileEntry.moveTo and fileEntry.co= pyTo=20 > -------------------------------------------------------------------------= ----- > > 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. Howev= er, version 1.0.0 of the file plugin does return the full path. This issue= occurs on both iOS and Android. =20 -- This message was sent by Atlassian JIRA (v6.2#6252)