FileTransfer always returns error in Simulator

2 posts, 0 answers
  1. Odinko
    Odinko avatar
    7 posts
    Member since:
    Jul 2014

    Posted 10 Aug 2014 Link to this post

    I have the following code:

    fileTransfer.download(
    "http://radio.aplus.by/templates/radio.aplus.by/images/logo.png",
     "file:///%simulator_persistent_root%/imgcache/25da062ac69658915c42d44c7e04f3366e0c7fcd.png",
     function(){alert("success");},
     function(e){alert("fail");},
    false);

    It successfully downloads the file, but the error handler is called and this is what error object looks like:
    FileTransferError {code: 3, source: "http://radio.aplus.by/templates/radio.aplus.by/images/logo.png", target: null, http_status: 400, body: null}
  2. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 13 Aug 2014 Link to this post

    Hi,

    Thanks for sharing your issue.
    I am afraid we have broken FileTransfer API in the Simulator only as of our latest release and we are really sorry for any inconvenience this could cause.

    We are working on a fix for the next release and I would suggest using a native emulator or an actual device for testing purposes as a workaround.
    Thanks for your patience and understanding.

    Regards,
    Zdravko
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
Back to Top