Nibble Plum Meringue

    This package has been deprecated

    Author message:

    This package has been deprecated. Please find this package under its new name @cloudflare/util-http-file.

    cf-util-http-file

    4.7.17 • Public • Published

    cf-util-http-file

    Cloudflare HTTP File Util

    Installation

    $ npm install cf-util-http-file

    Usage

    upload('/api/upload-file', fileInput.files[0], res => {
      console.log('Success!');
    }, err => {
      console.log('Failed!');
    });
    download('/api/download-file', 'filename.txt', res => {
      console.log('Success!');
    }, err => {
      console.log('Failed!');
    });

    Note: This is only really meant for plain text files, it might work with other stuff but don't expect it to.

    Keywords

    none

    Install

    npm i cf-util-http-file

    DownloadsWeekly Downloads

    4

    Version

    4.7.17

    License

    BSD-3-Clause

    Unpacked Size

    6.84 kB

    Total Files

    11

    Last publish

    Collaborators

    • trevorcf
    • g4brym
    • snigdha34
    • wrangler-publisher
    • marksteyn
    • chiminator
    • sgoodhew_cf
    • terinjokes
    • third774
    • evanderkoogh
    • jsteinberger
    • jasnell
    • kkoenig
    • asapzacy
    • pcostanzo
    • gregbrimble
    • geelen
    • jgentes
    • rexscaria
    • dcruz_cf
    • xuranwang
    • jculvey
    • sejoker
    • caass
    • vasturiano
    • cf-ci-write
    • segments-write
    • thibmeu
    • xortive
    • gurjinder
    • cf-ci2
    • lvalenta
    • worenga