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

Ian Clelland commented on CB-6735:
----------------------------------

I've responded to that SO question (I saw it before I saw this issue) with 
sample code, based on the code in the question, that does work.

Testing this with Cordova 3.5.0, and File 1.1.0, I can't reproduce the issue. 
{{FileEntry.copyTo()}} returns a URL with a {{file:///}} scheme, which is 
usable by the device for an image source. (If you're seeing 
{{file:///Users/....}}, that would imply that you're using a simulator, rather 
than a device, and perhaps theres something up with directory permissions? My 
test app works on the iOS 7.1 simulator as well, though)

What URLs are you actually seeing that don't work on a device for an image 
element source?

> File plugin returns the wrong path
> ----------------------------------
>
>                 Key: CB-6735
>                 URL: https://issues.apache.org/jira/browse/CB-6735
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File
>    Affects Versions: 3.4.0, 3.5.0
>         Environment: iPhone 5s, iOS-Simulators
>            Reporter: Mac Stuewe
>            Assignee: Shazron Abdullah
>            Priority: Blocker
>              Labels: File
>         Attachments: Bildschirmfoto 2014-05-22 um 16.29.32.png, 
> Bildschirmfoto 2014-05-22 um 16.30.47.png
>
>
> The file-module returns a unsuitable file-path description in iOS. 
> HTML-Tags '<img>', '<video>' and '<audio>' don't work with it.
> file.fullPath(), file.toNativeURL(), file.toURL() return a path starting with 
> 'file:///user/' and ending with '/folder/file.type'
> file-module has been tested in this versions:
> - 1.0.1
> - 1.1.0
> - 1.1.1



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

Reply via email to