This is a migrated thread and some comments may be shown as answers.

FileTransfer always returns error in Simulator

1 Answer 36 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Odinko
Top achievements
Rank 1
Odinko asked on 10 Aug 2014, 12:19 PM
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}

1 Answer, 1 is accepted

Sort by
0
Zdravko
Telerik team
answered on 13 Aug 2014, 02:23 PM
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.

 
Tags
Report a bug
Asked by
Odinko
Top achievements
Rank 1
Answers by
Zdravko
Telerik team
Share this question
or