Saturday, 15 June 2013

javascript - How to use Phonegap fileTransfer to save file from URL? -



javascript - How to use Phonegap fileTransfer to save file from URL? -

i using phonegap's filetransfer api grab file url , save local filesystem. here i've tried far:

filetransfer.download( canvasrenderurl, "/user/full/", function(entry) { console.log("download complete: " + entry.fullpath); }, function(error) { console.log("download error source: " + error.source); console.log("download error target: " + error.target); console.log("error code: " + error.code); } );

when nil in console - success nor error. inclination is path problem. can improve this?

i think need console plugin (cordova plugin add together org.apache.cordova.console) utilize console.log.

if problem callbacks never called, there open issues concerning on apache issue tracker:

success callback file transfer download not called every on ios download success callback not called in 0.4.3

javascript cordova file-transfer

No comments:

Post a Comment