You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Vitalii Vlasiuk (JIRA)" <ji...@apache.org> on 2013/07/01 17:27:20 UTC

[jira] [Commented] (CB-912) FileTransfer.download does not fire error callback when server is unavailable

    [ https://issues.apache.org/jira/browse/CB-912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13696882#comment-13696882 ] 

Vitalii Vlasiuk commented on CB-912:
------------------------------------

I want to download big file with slow connection and process abort by timeout. 
How to change timeout for FileTranfer for IOS?

                
> FileTransfer.download does not fire error callback when server is unavailable
> -----------------------------------------------------------------------------
>
>                 Key: CB-912
>                 URL: https://issues.apache.org/jira/browse/CB-912
>             Project: Apache Cordova
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>         Environment: Android/iOS
> Others untested
>            Reporter: Dewang Shah
>            Assignee: Filip Maj
>             Fix For: 1.9.0
>
>         Attachments: cb-915-repro.tar.gz
>
>
> The download method on FileTransfer never fires the error callback if there is a network connection but the download URL is not accessible. It simply waits forever and does not return.
> Reproduction:
>         var fileTransfer = new FileTransfer();
>         fileTransfer.download('http://nosuchserver/nosuchfile.png', fullPath, 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("download error code" + error.code);
>         });

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira