You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Vishal Mishra (JIRA)" <ji...@apache.org> on 2017/11/22 00:56:00 UTC

[jira] [Closed] (CB-9027) FileTransfer#download fails with FileTransferError.CONNECTION_ERR after 60 sec. on iOS

     [ https://issues.apache.org/jira/browse/CB-9027?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vishal Mishra closed CB-9027.
-----------------------------
    Resolution: Won't Fix

With the new features introduced in [XMLHttpRequest|https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest], this plugin is not needed any more. Migrating from this plugin to using the new features of [XMLHttpRequest|https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest], is explained in this [Cordova blog post|https://cordova.apache.org/blog/2017/10/18/from-filetransfer-to-xhr2.html].

> FileTransfer#download fails with FileTransferError.CONNECTION_ERR after 60 sec. on iOS
> --------------------------------------------------------------------------------------
>
>                 Key: CB-9027
>                 URL: https://issues.apache.org/jira/browse/CB-9027
>             Project: Apache Cordova
>          Issue Type: New Feature
>          Components: cordova-plugin-file-transfer (DEPRECATED)
>    Affects Versions: 3.4.0
>         Environment: iPhone 4s, iOS 8.3
> iPhone 5s, iOS 8.3
> Cordova 3.4.1
> FileTransfer 0.4.2
>            Reporter: Alexander Kilinskiy
>
> (x) when I try to download large file on iOS I receive FileTransferError.CONNECTION_ERR in 60 seconds (file generation tooks ~ 70-90 sec).
> Standard code used:
> {code:javascript}var fileTransfer = new window.FileTransfer(),
>   fileUrl = "", // some valid url (big file ~ 100Mb)
>   filePath = ""; // some valid location
> fileTransfer.download(fileUrl, 
>                       filePath, 
>                       function(entry) {
>                         // process file
>                       }, 
>                       function(error) {
>                         // process error
>                       });{code}
> Could i set custom timeout instead of 60 sec? 
> P.S. android devices wait till file is generated (70-90 sec)
> Thanks in advance.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org