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

Torsten Rosenberger commented on CB-6094:
-----------------------------------------

the logcat output

D/FileTransfer( 1439): download 
http://develop.taoweb.at/customer/417/1oma/1121/oma1392149482.jpg to 
cdvfile://localhost/persistent/1oma/1121/oma1392149482.jpg
E/FileTransfer( 1439): 
{"target":"cdvfile:\/\/localhost\/persistent\/1oma\/1121\/oma1392149482.jpg","source":"http:\/\/develop.taoweb.at\/customer\/417\/1oma\/1121\/oma1392149482.jpg","http_status":0,"code":1}
E/FileTransfer( 1439): java.io.FileNotFoundException: URI not supported by 
CordovaResourceApi: cdvfile://localhost/persistent/1oma/1121/oma1392149482.jpg
E/FileTransfer( 1439):  at 
org.apache.cordova.CordovaResourceApi.openOutputStream(CordovaResourceApi.java:301)
E/FileTransfer( 1439):  at 
org.apache.cordova.CordovaResourceApi.openOutputStream(CordovaResourceApi.java:274)
E/FileTransfer( 1439):  at 
org.apache.cordova.filetransfer.FileTransfer$4.run(FileTransfer.java:708)
E/FileTransfer( 1439):  at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
E/FileTransfer( 1439):  at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
E/FileTransfer( 1439):  at java.lang.Thread.run(Thread.java:856)


> Cordova 3.4.0 Filetransfer download Error Code 1
> ------------------------------------------------
>
>                 Key: CB-6094
>                 URL: https://issues.apache.org/jira/browse/CB-6094
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin File Transfer
>    Affects Versions: 3.4.0
>            Reporter: Torsten Rosenberger
>            Assignee: Ian Clelland
>              Labels: javascript
>
> Hello
> I update my phonegap 3.0.1 to cordova 3.4.0.
> But the same code which worked on 3.0.1 throw now a error 
> during downloading a file.
> First i request a filesystem
> window.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(fileSystem) 
> all ok, then create a directory also ok.
> remoteFile = 'http://www.example.com/myfile.png'
> localPath  = '/mydir/myfile.png'
> var ft = new FileTransfer();
> ft.download(remoteFile,localPath, function(entry) {
>   },
>   function(error) {
>     console.log(error);
>     console.log("download error source " + error.source);
>     console.log("download error target " + error.target);
>     console.log("download error code" + error.code);
>   }
> );
> in mydir Directory the File myfile.png ist created with a size of 0
> Bytes.
> and i got the error Code 1 (FILE_NOT_FOUND_ERR) 
> if i add file://mnt/sdcard/ to the localPath Variable the download is 
> sucessfull. But with the new Version i get 
> / for the fileSystem.root.fullPath as descriped in the changlog of 3.4.0
> maybe i doing something wrong with the new filesystem path to the root 
> directory ?
> BR/Torsten



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

Reply via email to