cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-13054) Write blog post on how to transition from file-transfer to XHR2
Date Thu, 05 Oct 2017 23:20:00 GMT


ASF GitHub Bot commented on CB-13054:

Github user audreyso commented on a diff in the pull request:
    --- Diff: www/_posts/ ---
    @@ -0,0 +1,85 @@
    +layout: post
    +    name: Fil Maj
    +    url:
    +title:  "Transition off of cordova-plugin-file-transfer"
    +categories: blog
    +tags: plugins
    +Early on in Cordova's existence, the [file-transfer plugin](
    +was created to solve the [problem of downloading binary files](
    +At the time, there weren't great options for solving this using standards-compliant
    +web APIs. The web took a twisty path to get to a solution (see
    +[Firefox's `sendAsBinary`](
    +and the now-defunct [FileSystem API]('s
    +among others), but today you can use our good friend [XMLHttpRequest]('s
    +newest features, combined with some newer JavaScript types and objects, to solve
    +this problem. As a result,
    +[Cordova is sunsetting the file-transfer plugin](
    +All of us at Apache Cordova don't want to leave y'all hanging, though, so we
    +thought it'd be a good idea to show you how to use these newer XHR features to do
    +what file-transfer lets you do, but in a way that will work in any modern web
    +browser to boot!
    +## TL;DR
    +Don't care about "standards" and all that mumbo jumbo? Just looking to copy-paste
    +your way to future-proofness? Fine, you'll need this:
    +* MDN has a great overview on [Sending and Receiving Binary Data](
    +* Check out my [little proof-of-concept app](
    +  Some details:
    +  * It [uses](
    +    [localforage]( as a storage abstraction.
    +  * The [`helpers.js` file](
    +    has two methods you'll need:
    +    * [`download_blob_via_xhr`](
    +    * [`upload_blob_via_xhr`](
    +## The Long Version
    +If you want to understand some of the nuts and bolts enabling binary data transfering,
    --- End diff --
    transferring* :)

> Write blog post on how to transition from file-transfer to XHR2
> ---------------------------------------------------------------
>                 Key: CB-13054
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: cordova-plugin-file-transfer
>            Reporter: Filip Maj
>            Assignee: Filip Maj
>              Labels: plugins-next
> Based on XHR2 research (see linked-to JIRA issue), write up a blog post!

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message