Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
3.4.0
-
None
Description
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)
);
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