android - PhoneGap 3.3.0 - Getting error code 1 "FILE_NOT_FOUND_ERR" when downloading file to mobile device -
i working on old phonegap project using phonegap version 3.3.0. trying download file mobile device. however, i'm getting error code 1 "file_not_found_err".
i checked several times , file path absolutely right , downloadable. so, not issue of source file. however, now, doubting whether might destination path causing this. i've set destination "cdvfile://localhost/persistent/".
requestfilesystem(localfilesystem.persistent, 0, function onfilesystemsuccess(filesystem) { var filetransfer = new filetransfer(); filetransfer.download("https://ssl.gstatic.com/accounts/ui/logo_2x.png", "cdvfile://localhost/persistent/test.png", function (thefile) { //success }, function (error) { //error - code here executed }); }, function fail(evt) { //could not filesystem });
android ios cordova windows-phone-8 download
No comments:
Post a Comment